tests: Work around a Metal bug.

This test currently hit a Metal bug when run on Apple Silicon with
MoltenVK and fails. We don't have an easy way to mark shader runner
tests as buggy and we're not interested in tracking that bug anyway,
so I'm just working around it.
This commit is contained in:
Giovanni Mascellani 2024-02-02 11:17:36 +01:00 committed by Alexandre Julliard
parent 625e289574
commit 4ba324d37c
Notes: Alexandre Julliard 2024-02-07 23:27:02 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/625

View File

@ -527,7 +527,7 @@ float4 main() : sv_target
{ {
switch (v.x) switch (v.x)
{ {
case 0: case 1:
for (j = 0; j < v.z; j++) for (j = 0; j < v.z; j++)
{ {
c += 1.0f; c += 1.0f;
@ -535,7 +535,7 @@ float4 main() : sv_target
continue; continue;
} }
break; break;
case 1: case 0:
c += 2.0f; c += 2.0f;
break; break;
} }
@ -545,10 +545,10 @@ float4 main() : sv_target
} }
[test] [test]
uniform 0 uint4 0 0 3 1 uniform 0 uint4 1 0 3 1
draw quad draw quad
probe all rgba (10.0, 11.0, 12.0, 13.0) probe all rgba (10.0, 11.0, 12.0, 13.0)
uniform 0 uint4 1 0 3 1 uniform 0 uint4 0 0 3 1
draw quad draw quad
probe all rgba (7.0, 8.0, 9.0, 10.0) probe all rgba (7.0, 8.0, 9.0, 10.0)