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:
Ben Clayton
2022-07-22 17:43:27 +00:00
committed by Dawn LUCI CQ
parent 0778d9a48f
commit 7d34de88f1
5122 changed files with 73624 additions and 206 deletions

View File

@@ -0,0 +1,12 @@
void main_1() {
float3x3 m = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx);
m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f));
m[1] = (5.0f).xxx;
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,6 @@
[numthreads(1, 1, 1)]
void main() {
float3x3 m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f));
m[1] = (5.0f).xxx;
return;
}

View File

@@ -0,0 +1,10 @@
void main_1() {
uint x_10 = 0u;
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,12 @@
static int I = 0;
void main_1() {
const int x_11 = (I + 1);
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,7 @@
static int I = 0;
[numthreads(1, 1, 1)]
void main() {
const int use = (I + 1);
return;
}

View File

@@ -0,0 +1,18 @@
struct S {
int i;
};
static S V = (S)0;
void main_1() {
int i = 0;
const int x_15 = V.i;
i = x_15;
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,11 @@
struct S {
int i;
};
static S V = (S)0;
[numthreads(1, 1, 1)]
void main() {
const int i = V.i;
return;
}

View File

@@ -0,0 +1,12 @@
void main_1() {
int i = 0;
i = 123;
const int x_12 = (i + 1);
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,6 @@
[numthreads(1, 1, 1)]
void main() {
int i = 123;
const int use = (i + 1);
return;
}

View File

@@ -0,0 +1,6 @@
[numthreads(1, 1, 1)]
void main() {
int i = 123;
const int use = (i + 1);
return;
}

View File

@@ -0,0 +1,7 @@
static int i = 123;
[numthreads(1, 1, 1)]
void main() {
const int use = (i + 1);
return;
}

View File

@@ -0,0 +1,7 @@
RWByteAddressBuffer v : register(u0, space0);
[numthreads(1, 1, 1)]
void main() {
const int use = (asint(v.Load(0u)) + 1);
return;
}

View File

@@ -0,0 +1,9 @@
cbuffer cbuffer_v : register(b0, space0) {
uint4 v[1];
};
[numthreads(1, 1, 1)]
void main() {
const int use = (asint(v[0].x) + 1);
return;
}

View File

@@ -0,0 +1,20 @@
groupshared int i;
struct tint_symbol_1 {
uint local_invocation_index : SV_GroupIndex;
};
void main_inner(uint local_invocation_index) {
{
i = 0;
}
GroupMemoryBarrierWithGroupSync();
i = 123;
const int use = (i + 1);
}
[numthreads(1, 1, 1)]
void main(tint_symbol_1 tint_symbol) {
main_inner(tint_symbol.local_invocation_index);
return;
}

View File

@@ -0,0 +1,17 @@
struct S {
int i;
};
void main_1() {
int i = 0;
S V = (S)0;
const int x_14 = V.i;
i = x_14;
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,10 @@
struct S {
int i;
};
[numthreads(1, 1, 1)]
void main() {
S V = (S)0;
int i = V.i;
return;
}

View File

@@ -0,0 +1,17 @@
int func(int value, inout int pointer) {
const int x_9 = pointer;
return (value + x_9);
}
void main_1() {
int i = 0;
i = 123;
const int x_18 = func(i, i);
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,10 @@
int func(int value, inout int pointer) {
return (value + pointer);
}
[numthreads(1, 1, 1)]
void main() {
int i = 123;
const int r = func(i, i);
return;
}

View File

@@ -0,0 +1,13 @@
static int I = 0;
void main_1() {
I = 123;
I = ((100 + 20) + 3);
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,8 @@
static int I = 0;
[numthreads(1, 1, 1)]
void main() {
I = 123;
I = ((100 + 20) + 3);
return;
}

View File

@@ -0,0 +1,16 @@
struct S {
int i;
};
static S V = (S)0;
void main_1() {
V.i = 5;
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,13 @@
void main_1() {
int i = 0;
i = 123;
i = 123;
i = ((100 + 20) + 3);
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,7 @@
[numthreads(1, 1, 1)]
void main() {
int i = 123;
i = 123;
i = ((100 + 20) + 3);
return;
}

View File

@@ -0,0 +1,15 @@
struct S {
int i;
};
void main_1() {
S V = (S)0;
V.i = 5;
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,17 @@
void func(int value, inout int pointer) {
pointer = value;
return;
}
void main_1() {
int i = 0;
i = 123;
func(123, i);
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}

View File

@@ -0,0 +1,10 @@
void func(int value, inout int pointer) {
pointer = value;
}
[numthreads(1, 1, 1)]
void main() {
int i = 123;
func(123, i);
return;
}