Skip to content

Commit b7781fa

Browse files
author
Greg Roth
committed
remove trappings of a filechedk tests from validation sources
1 parent 3d86e5b commit b7781fa

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

tools/clang/test/DXILValidation/load-store-validation.hlsl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// RUN: %dxc -T ps_6_9 %s -Od | FileCheck %s
2-
3-
// HLSL source for validation of various invalid load/store parameters.
4-
// See LitDxilValidation/load-store-validation.ll.
1+
// This file is not used directly for testing.
2+
// This is the HLSL source for validation of various invalid load/store parameters.
3+
// It is used to generate LitDxilValidation/load-store-validation.ll using `dxc -T ps_6_9`.
54
// Output is modified to trigger various validation errors.
65

76
Texture1D<float4> Tex;
@@ -16,8 +15,7 @@ RWStructuredBuffer<float4> OutVecBuf;
1615
RWStructuredBuffer<float> OutScalBuf;
1716
RWByteAddressBuffer OutBaBuf;
1817

19-
// some simple ways to generate the vector ops in question.
20-
// CHECK-LABEL: define void @main
18+
// Some simple ways to generate the vector ops in question.
2119
float4 main(int i : IX) : SV_Target {
2220
// Texture provides some invalid handles to plug in.
2321
float4 TexVal = Tex.Sample(Samp, i);

tools/clang/test/DXILValidation/vector-validation.hlsl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
// RUN: %dxc -T vs_6_9 %s -Od | FileCheck %s
2-
3-
// HLSL source for validation that vector operations produce errors pre-6.9
4-
// See LitDxilValidation/vector-validation.ll.
5-
// Output is modified to have 6.8 instead.
1+
// This file is not used directly for testing.
2+
// This is the HLSL source for validation of disallowed 6.9 features in previous shader models.
3+
// It is used to generate LitDxilValidation/vector-validation.ll using `dxc -T ps_6_9`.
4+
// Output is modified to have shader model 6.8 instead.
65

76
RWStructuredBuffer<float4> VecBuf;
87

98
// some simple ways to generate the vector ops in question.
10-
// CHECK-LABEL: define void @main
119
float4 main(float val : VAL) :SV_Position {
1210
float4 vec = VecBuf[1];
1311
VecBuf[0] = val;

0 commit comments

Comments
 (0)