From 872d2e75344930b796b10c33e5b75e884addba81 Mon Sep 17 00:00:00 2001 From: imShangLi Date: Tue, 1 Dec 2026 09:20:25 +0800 Subject: [PATCH] tests/test_make_game_argparse: the shaders stage probes two more GPUs than the test mocks test_custom_jobs_forwarded_to_shaders asserts fallbacks=() but neutralises only four of the six runtime_gpu_* probes the shaders stage consults. The two it misses answer False on hardware tools/vk_subgroup_info.py documents: denorm_flush_to_zero_f32 on NVIDIA Vulkan drivers (VK_FALSE) and integer_dot_product on a Vulkan 1.2 device such as MoltenVK's. Where a probe answers False, make_game.py sets the fallback flag unconditionally instead of going through keep_recorded_fallback(), so the assertion fails with fallbacks=('--no-ftz32',). Add the two missing patches, the same six-probe list tests/test_make_game_translator_flags.py already uses. --- tests/test_make_game_argparse.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_make_game_argparse.py b/tests/test_make_game_argparse.py index 8a96c6958a..a92934bffa 100644 --- a/tests/test_make_game_argparse.py +++ b/tests/test_make_game_argparse.py @@ -365,7 +365,9 @@ def test_custom_jobs_forwarded_to_shaders(self): patch("make_game.runtime_gpu_per_vertex", return_value=None), \ patch("make_game.runtime_gpu_barycentric_fallback", return_value=None), \ patch("make_game.runtime_gpu_max_push_constants", return_value=None), \ - patch("make_game.runtime_gpu_mesh_draws_crash", return_value=None): + patch("make_game.runtime_gpu_mesh_draws_crash", return_value=None), \ + patch("make_game.runtime_gpu_integer_dot_product", return_value=None), \ + patch("make_game.runtime_gpu_denorm_ftz_f32", return_value=None): ret = make_game.main() self.assertEqual(ret, 0) probe.assert_called_once_with("auto", mesh_compute=False)