Skip to content

Commit f1cbe8d

Browse files
committed
spelling mistake + %dxc instead of dxc
Signed-off-by: Nathan Gauër <[email protected]>
1 parent 04fadb9 commit f1cbe8d

7 files changed

+12
-12
lines changed

tools/clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7736,7 +7736,7 @@ def warn_hlsl_implicit_vector_truncation : Warning<
77367736
def err_hlsl_nointerpolation_and_linear : Error<
77377737
"nointerpolation cannot be used with any other interpolation mode specifier">;
77387738
def err_hlsl_parameter_requires_attribute : Error<
7739-
"parameter %0 of %1 must have a a '%2' attribute">;
7739+
"parameter %0 of %1 must have a '%2' attribute">;
77407740
def warn_hlsl_duplicate_specifier : Warning<
77417741
"duplicate HLSL specifier %0">,
77427742
InGroup<IgnoredAttributes>, DefaultWarn;

tools/clang/test/CodeGenSPIRV/intrinsics.get-attribute-at-vertex.cbuf.var.hlsl

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

33
// CHECK: OpDecorate %in_var_A PerVertexKHR
44
// CHECK-DAG: %type_constants = OpTypeStruct %uint

tools/clang/test/CodeGenSPIRV/intrinsics.get-attribute-at-vertex.s.funcParam.neg.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ float compute(nointerpolation float4 a) {
1111
float4 main(nointerpolation S s, float4 b : COLOR2) : SV_TARGET
1212
{
1313
return float4(0,
14-
compute(b), // expected-error{{parameter 0 of compute must have a a 'nointerpolation' attribute}}
15-
compute(b), // expected-error{{parameter 0 of compute must have a a 'nointerpolation' attribute}}
14+
compute(b), // expected-error{{parameter 0 of compute must have a 'nointerpolation' attribute}}
15+
compute(b), // expected-error{{parameter 0 of compute must have a 'nointerpolation' attribute}}
1616
compute(s.a));
1717
}

tools/clang/test/SemaHLSL/getattribute-at-vertex.legal.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: dxc -T ps_6_2 -E main %s -verify
1+
// RUN: %dxc -T ps_6_2 -E main %s -verify
22

33
// expected-no-diagnostics
44
struct S1 {

tools/clang/test/SemaHLSL/getattribute-at-vertex.legal.nointerpolation.call.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: dxc -T ps_6_2 -E main %s -verify
1+
// RUN: %dxc -T ps_6_2 -E main %s -verify
22

33
// expected-no-diagnostics
44
float compute(nointerpolation float3 value) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// REQUIRES: spirv
2-
// RUN: dxc -T ps_6_2 -E main %s -spirv -verify
2+
// RUN: %dxc -T ps_6_2 -E main %s -spirv -verify
33

44
float compute(nointerpolation float3 value) {
55
return GetAttributeAtVertex(value, 0)[0];
66
}
77

88
float4 main(float3 a : A) : SV_Target
99
{
10-
float v1 = compute(a); /* expected-error{{parameter 0 of compute must have a a 'nointerpolation' attribute}} */
10+
float v1 = compute(a); /* expected-error{{parameter 0 of compute must have a 'nointerpolation' attribute}} */
1111
return float4(v1.xxxx);
1212
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// REQUIRES: spirv
2-
// RUN: dxc -T ps_6_2 -E main %s -spirv -verify
2+
// RUN: %dxc -T ps_6_2 -E main %s -spirv -verify
33

44
struct S1 {
55
float3 f1;
66
};
77

88
float compute(float3 value) {
9-
return GetAttributeAtVertex(value, 0)[0]; /* expected-error{{parameter 0 of GetAttributeAtVertex must have a a 'nointerpolation' attribute}} */
9+
return GetAttributeAtVertex(value, 0)[0]; /* expected-error{{parameter 0 of GetAttributeAtVertex must have a 'nointerpolation' attribute}} */
1010
}
1111

1212
float4 main(float3 a : A, S1 s1 : B) : SV_Target
1313
{
14-
float v1 = GetAttributeAtVertex(a, 0)[0]; /* expected-error{{parameter 0 of GetAttributeAtVertex must have a a 'nointerpolation' attribute}} */
15-
float v2 = GetAttributeAtVertex(s1.f1, 0)[0]; /* expected-error{{parameter 0 of GetAttributeAtVertex must have a a 'nointerpolation' attribute}} */
14+
float v1 = GetAttributeAtVertex(a, 0)[0]; /* expected-error{{parameter 0 of GetAttributeAtVertex must have a 'nointerpolation' attribute}} */
15+
float v2 = GetAttributeAtVertex(s1.f1, 0)[0]; /* expected-error{{parameter 0 of GetAttributeAtVertex must have a 'nointerpolation' attribute}} */
1616
float v3 = compute(a);
1717
return float4(v1.xx, v2, v3);
1818
}

0 commit comments

Comments
 (0)