Skip to content

Commit aac8727

Browse files
authored
Update all the HLSL tests that rely on HLSL 2018 (microsoft#4878)
This updates all the tests cases that rely on HLSL 2018 behaviors that will break if the default HLSL version updates to 2021. These tests are updated to be passed the HLSL 2018 version so they continue testing and working under the same behaviors.
1 parent 45eec33 commit aac8727

File tree

134 files changed

+169
-168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+169
-168
lines changed

tools/clang/test/CodeGenHLSL/Samples/D12/d12_multithreading_ps.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
1+
// RUN: %dxc -E main -T ps_6_0 -HV 2018 %s | FileCheck %s
22

33
// CHECK: Sqrt
44
// CHECK: dot3

tools/clang/test/CodeGenHLSL/Samples/D12/d12_multithreading_vs.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %dxc -E main -T vs_6_0 %s | FileCheck %s
1+
// RUN: %dxc -E main -T vs_6_0 -HV 2018 %s | FileCheck %s
22

33
// The constant buffer should be allocated with ID zero and referenced as such.
44

tools/clang/test/CodeGenHLSL/Samples/DX11/BC6HDecode.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %dxc -E main -T cs_6_0 %s | FileCheck %s
1+
// RUN: %dxc -E main -T cs_6_0 -HV 2018 %s | FileCheck %s
22

33
// CHECK: groupId
44
// CHECK: flattenedThreadIdInGroup

tools/clang/test/CodeGenHLSL/Samples/DX11/BC6HEncode_EncodeBlockCS.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %dxc -E main -T cs_6_0 %s | FileCheck %s
1+
// RUN: %dxc -E main -T cs_6_0 -HV 2018 %s | FileCheck %s
22

33
// check input.
44
// CHECK: flattenedThreadIdInGroup

tools/clang/test/CodeGenHLSL/Samples/DX11/BC6HEncode_TryModeG10CS.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %dxc -E main -T cs_6_0 %s | FileCheck %s
1+
// RUN: %dxc -E main -T cs_6_0 -HV 2018 %s | FileCheck %s
22

33
// check input.
44
// CHECK: flattenedThreadIdInGroup

tools/clang/test/CodeGenHLSL/Samples/DX11/BC6HEncode_TryModeLE10CS.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %dxc -E main -T cs_6_0 %s | FileCheck %s
1+
// RUN: %dxc -E main -T cs_6_0 -HV 2018 %s | FileCheck %s
22

33
// check input.
44
// CHECK: flattenedThreadIdInGroup

tools/clang/test/CodeGenHLSL/Samples/DX11/ContactHardeningShadows11_PS.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %dxc -E main -T ps_6_0 -O0 %s | FileCheck %s
1+
// RUN: %dxc -E main -T ps_6_0 -O0 -HV 2018 %s | FileCheck %s
22

33
// CHECK: Round_ni
44
// CHECK: textureGather

tools/clang/test/CodeGenHLSL/Samples/DX11/DecalTessellation11_DS.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %dxc -E main -T ds_6_0 %s | FileCheck %s
1+
// RUN: %dxc -E main -T ds_6_0 -HV 2018 %s | FileCheck %s
22

33
// CHECK: domainLocation
44
// CHECK: domainLocation

tools/clang/test/CodeGenHLSL/Samples/DX11/TessellatorCS40_NumVerticesIndicesCS.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %dxc -E main -T cs_6_0 -O0 %s | FileCheck %s
1+
// RUN: %dxc -E main -T cs_6_0 -O0 -HV 2018 %s | FileCheck %s
22

33
// CHECK: threadId
44
// CHECK: bufferLoad

tools/clang/test/CodeGenHLSL/Samples/DX11/TessellatorCS40_TessellateIndicesCS.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %dxc -E main -T cs_6_0 -O0 %s | FileCheck %s
1+
// RUN: %dxc -E main -T cs_6_0 -O0 -HV 2018 %s | FileCheck %s
22

33
// CHECK: threadId
44
// CHECK: bufferLoad

0 commit comments

Comments
 (0)