Antonio Maiorano 2f7730a16e Manually generate HLSL skip files for vk-gl-cts e2e tests
It seems we haven't run our e2e tests with FXC validation in a long time
 - at least not since we've added the vk-gl-cts corpus.

Locally disabled exclusion of "/test/vk-gl-cts/" in test-runner/main.go,
and ran:
./test/test-all.sh out/build/x64-Debug/tint.exe --format hlsl --fxc --generate-skip

These will need to be manually removed once the skips aren't needed by
deleting them all, and re-running as above.

Bug: tint:940
Change-Id: I27e395e69f5e1bd7d234f3155f40396b751720d4
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/71981
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2021-12-08 04:26:58 +00:00

65 lines
1.7 KiB
HLSL

SKIP: FAILED
cbuffer cbuffer_x_6 : register(b0, space0) {
uint4 x_6[4];
};
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
void main_1() {
int a = 0;
int i = 0;
const int x_27 = asint(x_6[3].x);
a = x_27;
i = 0;
{
[loop] for(; (i < 3); i = (i + 1)) {
const int x_35 = i;
const int x_37 = asint(x_6[1].x);
if ((x_35 == x_37)) {
a = (a + 1);
} else {
a = (a / i);
}
}
}
const int x_49 = a;
const int x_51 = asint(x_6[2].x);
if ((x_49 == x_51)) {
const uint scalar_offset = ((16u * uint(0))) / 4;
const int x_57 = asint(x_6[scalar_offset / 4][scalar_offset % 4]);
const int x_60 = asint(x_6[1].x);
const int x_63 = asint(x_6[1].x);
const uint scalar_offset_1 = ((16u * uint(0))) / 4;
const int x_66 = asint(x_6[scalar_offset_1 / 4][scalar_offset_1 % 4]);
x_GLF_color = float4(float(x_57), float(x_60), float(x_63), float(x_66));
} else {
const int x_70 = asint(x_6[1].x);
const float x_71 = float(x_70);
x_GLF_color = float4(x_71, x_71, x_71, x_71);
}
return;
}
struct main_out {
float4 x_GLF_color_1;
};
struct tint_symbol {
float4 x_GLF_color_1 : SV_Target0;
};
main_out main_inner() {
main_1();
const main_out tint_symbol_2 = {x_GLF_color};
return tint_symbol_2;
}
tint_symbol main() {
const main_out inner_result = main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
return wrapper_result;
}
C:\src\tint\test\Shader@0x000001A53C9E4360(19,14-18): error X4010: Unsigned integer divide by zero
C:\src\tint\test\Shader@0x000001A53C9E4360(19,14-18): warning X3556: integer divides may be much slower, try using uints if possible.