Module: vkd3d
Branch: master
Commit: 4ba324d37c8fa7ca47525f2525ded391a0b851cc
URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/4ba324d37c8fa7ca47525f2525ded…
Author: Giovanni Mascellani <gmascellani(a)codeweavers.com>
Date: Fri Feb 2 11:17:36 2024 +0100
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.
---
tests/hlsl/switch.shader_test | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/hlsl/switch.shader_test b/tests/hlsl/switch.shader_test
index 543d44e2..63c9c09d 100644
--- a/tests/hlsl/switch.shader_test
+++ b/tests/hlsl/switch.shader_test
@@ -527,7 +527,7 @@ float4 main() : sv_target
{
switch (v.x)
{
- case 0:
+ case 1:
for (j = 0; j < v.z; j++)
{
c += 1.0f;
@@ -535,7 +535,7 @@ float4 main() : sv_target
continue;
}
break;
- case 1:
+ case 0:
c += 2.0f;
break;
}
@@ -545,10 +545,10 @@ float4 main() : sv_target
}
[test]
-uniform 0 uint4 0 0 3 1
+uniform 0 uint4 1 0 3 1
draw quad
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
probe all rgba (7.0, 8.0, 9.0, 10.0)