mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
tint/test-runner: Split expectations for FXC and DXC
Change tint's `--fxc` flag to take the path of the FXC compiler DLL. Have tint attempt to validate with both FXC and DXC if `--validate` is passed. Fix the 'dirsWithNoPassExpectations' logic which looks like it got broken with the tint -> dawn merge. It also incorrectly applied filepath.FromSlash() on windows. Change-Id: I0f46aa5c21bc48a2abc48402c41f846aff4a8633 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96800 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
0778d9a48f
commit
7d34de88f1
@@ -0,0 +1,36 @@
|
||||
Texture3D<float4> arg_0 : register(t0, space1);
|
||||
SamplerState arg_1 : register(s1, space1);
|
||||
|
||||
void textureSampleGrad_21402b() {
|
||||
float3 arg_2 = (0.0f).xxx;
|
||||
float3 arg_3 = (0.0f).xxx;
|
||||
float3 arg_4 = (0.0f).xxx;
|
||||
float4 res = arg_0.SampleGrad(arg_1, arg_2, arg_3, arg_4);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
textureSampleGrad_21402b();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
tint_symbol vertex_main() {
|
||||
const float4 inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
textureSampleGrad_21402b();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
textureSampleGrad_21402b();
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
Texture2DArray<float4> arg_0 : register(t0, space1);
|
||||
SamplerState arg_1 : register(s1, space1);
|
||||
|
||||
void textureSampleGrad_2ecd8f() {
|
||||
float2 arg_2 = (0.0f).xx;
|
||||
int arg_3 = 1;
|
||||
float2 arg_4 = (0.0f).xx;
|
||||
float2 arg_5 = (0.0f).xx;
|
||||
float4 res = arg_0.SampleGrad(arg_1, float3(arg_2, float(arg_3)), arg_4, arg_5);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
textureSampleGrad_2ecd8f();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
tint_symbol vertex_main() {
|
||||
const float4 inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
textureSampleGrad_2ecd8f();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
textureSampleGrad_2ecd8f();
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
Texture2D<float4> arg_0 : register(t0, space1);
|
||||
SamplerState arg_1 : register(s1, space1);
|
||||
|
||||
void textureSampleGrad_521263() {
|
||||
float2 arg_2 = (0.0f).xx;
|
||||
float2 arg_3 = (0.0f).xx;
|
||||
float2 arg_4 = (0.0f).xx;
|
||||
float4 res = arg_0.SampleGrad(arg_1, arg_2, arg_3, arg_4);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
textureSampleGrad_521263();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
tint_symbol vertex_main() {
|
||||
const float4 inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
textureSampleGrad_521263();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
textureSampleGrad_521263();
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
TextureCube<float4> arg_0 : register(t0, space1);
|
||||
SamplerState arg_1 : register(s1, space1);
|
||||
|
||||
void textureSampleGrad_5312f4() {
|
||||
float3 arg_2 = (0.0f).xxx;
|
||||
float3 arg_3 = (0.0f).xxx;
|
||||
float3 arg_4 = (0.0f).xxx;
|
||||
float4 res = arg_0.SampleGrad(arg_1, arg_2, arg_3, arg_4);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
textureSampleGrad_5312f4();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
tint_symbol vertex_main() {
|
||||
const float4 inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
textureSampleGrad_5312f4();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
textureSampleGrad_5312f4();
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
Texture3D<float4> arg_0 : register(t0, space1);
|
||||
SamplerState arg_1 : register(s1, space1);
|
||||
|
||||
void textureSampleGrad_5884dd() {
|
||||
float3 arg_2 = (0.0f).xxx;
|
||||
float3 arg_3 = (0.0f).xxx;
|
||||
float3 arg_4 = (0.0f).xxx;
|
||||
float4 res = arg_0.SampleGrad(arg_1, arg_2, arg_3, arg_4, (0).xxx);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
textureSampleGrad_5884dd();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
tint_symbol vertex_main() {
|
||||
const float4 inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
textureSampleGrad_5884dd();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
textureSampleGrad_5884dd();
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
Texture2D<float4> arg_0 : register(t0, space1);
|
||||
SamplerState arg_1 : register(s1, space1);
|
||||
|
||||
void textureSampleGrad_d4e3c5() {
|
||||
float2 arg_2 = (0.0f).xx;
|
||||
float2 arg_3 = (0.0f).xx;
|
||||
float2 arg_4 = (0.0f).xx;
|
||||
float4 res = arg_0.SampleGrad(arg_1, arg_2, arg_3, arg_4, (0).xx);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
textureSampleGrad_d4e3c5();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
tint_symbol vertex_main() {
|
||||
const float4 inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
textureSampleGrad_d4e3c5();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
textureSampleGrad_d4e3c5();
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
Texture2DArray<float4> arg_0 : register(t0, space1);
|
||||
SamplerState arg_1 : register(s1, space1);
|
||||
|
||||
void textureSampleGrad_d65515() {
|
||||
float2 arg_2 = (0.0f).xx;
|
||||
int arg_3 = 1;
|
||||
float2 arg_4 = (0.0f).xx;
|
||||
float2 arg_5 = (0.0f).xx;
|
||||
float4 res = arg_0.SampleGrad(arg_1, float3(arg_2, float(arg_3)), arg_4, arg_5, (0).xx);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
textureSampleGrad_d65515();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
tint_symbol vertex_main() {
|
||||
const float4 inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
textureSampleGrad_d65515();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
textureSampleGrad_d65515();
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
TextureCubeArray<float4> arg_0 : register(t0, space1);
|
||||
SamplerState arg_1 : register(s1, space1);
|
||||
|
||||
void textureSampleGrad_e383db() {
|
||||
float3 arg_2 = (0.0f).xxx;
|
||||
int arg_3 = 1;
|
||||
float3 arg_4 = (0.0f).xxx;
|
||||
float3 arg_5 = (0.0f).xxx;
|
||||
float4 res = arg_0.SampleGrad(arg_1, float4(arg_2, float(arg_3)), arg_4, arg_5);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
textureSampleGrad_e383db();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
tint_symbol vertex_main() {
|
||||
const float4 inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
textureSampleGrad_e383db();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
textureSampleGrad_e383db();
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user