Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spirv: remove superfluous test lines. #5676

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
Loading