[PATCH v2 0/1] MR625: 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. -- v2: tests: Work around a Metal bug. https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/625
From: Giovanni Mascellani <gmascellani(a)codeweavers.com> 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 543d44e21..63c9c09da 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) -- GitLab https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/625
This merge request was approved by Henri Verbeet. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/625
participants (3)
-
Giovanni Mascellani -
Giovanni Mascellani (@giomasce) -
Henri Verbeet (@hverbeet)