Skip to content

Commit

Permalink
spirv: remove superfluous test lines. (microsoft#5676)
Browse files Browse the repository at this point in the history
Those are not used as we compile in `-fcgl`.
  • Loading branch information
Keenuts authored Sep 8, 2023
1 parent a9d9e65 commit 18328d5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tools/clang/test/CodeGenSPIRV/type.texture.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ Texture2DMSArray <uint4> t9 : register(t9);
// CHECK: %t10 = OpVariable %_ptr_UniformConstant_type_2d_image_1 UniformConstant
Texture2D <bool> t10 : register(t10);

SamplerState gSampler : register(s12);

struct S {
float a;
float b;
Expand All @@ -73,19 +71,6 @@ Texture1D<S> sTex;
// CHECK: %tTex = OpVariable %_ptr_UniformConstant_type_2d_image_array_1 UniformConstant
Texture2DArray<T> tTex;

// Just to prevent DCE.
RWBuffer<uint> output;

void main() {
// CHECK-LABEL: %main = OpFunction
output[0] = t1[0].x;
output[1] = t2[uint2(0, 0)].x;
output[2] = t3[uint3(0, 0, 0)].x;
output[3] = t4.Gather(gSampler, float3(0, 0, 0)).x;
output[4] = t5[uint2(0, 0)].x;
output[5] = t6[uint3(0, 0, 0)].x;
output[6] = t7.Gather(gSampler, float4(0, 0, 0, 0)).x;
output[7] = t8[uint2(0, 0)].x;
output[8] = t9[uint3(0, 0, 0)].x;
output[9] = t10[uint2(0, 0)] ? 0 : 1;
}

0 comments on commit 18328d5

Please sign in to comment.