From fcd197934a32fceef40ce50282f3909252b6df6d Mon Sep 17 00:00:00 2001 From: LunaDL <91587464+EnzoDLofi@users.noreply.github.com> Date: Mon, 30 Nov 2026 19:15:04 -0400 Subject: [PATCH] test: fix effects source cache harness initialization (#3490) --- tools/tests/effects_source_cache_harness.c | 3 +++ tools/tests/test_effects_lazy_pipelines.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/tests/effects_source_cache_harness.c b/tools/tests/effects_source_cache_harness.c index 475d4b133..da9615d1c 100644 --- a/tools/tests/effects_source_cache_harness.c +++ b/tools/tests/effects_source_cache_harness.c @@ -84,6 +84,9 @@ static void check_generated_settings_and_layout(void) { g_vk.CmdBindPipeline = bind_pipeline; g_vk.CmdBindDescriptorSets = bind_sets; g_vk.CmdPushConstants = push; g_vk.CmdDraw = draw; g_vk.CmdEndRenderPass = end_pass; g_vk.CmdBlitImage = blit; + g_rp = (VkRenderPass)(uintptr_t)5; + g_pipe[P_SGSR] = (VkPipeline)(uintptr_t)6; + g_pipe[P_COLOR] = (VkPipeline)(uintptr_t)7; g_ready = 1; for (int k = 0; k < 2; k++) { struct fx_target *t = &g_contexts[1].targets[k]; diff --git a/tools/tests/test_effects_lazy_pipelines.py b/tools/tests/test_effects_lazy_pipelines.py index 1da6a9c2f..9f2782989 100644 --- a/tools/tests/test_effects_lazy_pipelines.py +++ b/tools/tests/test_effects_lazy_pipelines.py @@ -32,7 +32,7 @@ class LazyEffectPipelineSourceTest(unittest.TestCase): self.assertIn("effect pipelines are created when needed", body) def test_pipelines_are_prepared_before_effect_chain_resources_and_draws(self): - body = function_body(self.source, "VkImage vkp_effects_run(") + body = function_body(self.source, "static VkImage effects_run(") prepare = body.index("pipelines_ensure(spatial, s)") scene = body.index("scene_ensure(scene, scene_w, scene_h)") self.assertLess(prepare, scene)