diff --git a/runtime/tests/gl_fmv_fixture.h b/runtime/tests/gl_fmv_fixture.h new file mode 100644 index 00000000..ef0ea2fe --- /dev/null +++ b/runtime/tests/gl_fmv_fixture.h @@ -0,0 +1,9 @@ +#pragma once +/* These fixtures exercise native presentation. Decoder behavior has its own test. */ +#include "gpu_fmv_hd.h" +int gpu_fmv_hd_lookup(const uint32_t *p,int w,int h,int cw,FmvHdImage *out) { + (void)p;(void)w;(void)h;(void)cw;(void)out;return 0; +} +void gpu_fmv_hd_shutdown(void) {} +void gpu_fmv_hd_stats(uint64_t *h,uint64_t *q,uint64_t *m) {if(h)*h=0;if(q)*q=0;if(m)*m=0;} +int gpu_fmv_hd_debug_json(char *out,size_t cap) {if(out&&cap)out[0]=0;return 0;} diff --git a/runtime/tests/test_gl_frame_gen.c b/runtime/tests/test_gl_frame_gen.c index f3f65c3e..1aceab58 100644 --- a/runtime/tests/test_gl_frame_gen.c +++ b/runtime/tests/test_gl_frame_gen.c @@ -34,6 +34,7 @@ static void fixture_present(int generated); static void fixture_window(int slot); #define GL_PRESENT_THREAD_TEST_HOOK(slot) fixture_window(slot) #include "gpu_gl_renderer.c" +#include "gl_fmv_fixture.h" #include "gpu_hd_texture_stubs.inc" #include "mod_texture_banks.c" #include "gl_batch_policy_lle.c" diff --git a/runtime/tests/test_gl_readback_region.c b/runtime/tests/test_gl_readback_region.c index 9a5e8350..6e44cbdf 100644 --- a/runtime/tests/test_gl_readback_region.c +++ b/runtime/tests/test_gl_readback_region.c @@ -1,5 +1,6 @@ /* Original source-owned GL readback-coherence regression. No retail payload. */ #include "gpu_gl_renderer.c" +#include "gl_fmv_fixture.h" #include "gpu_hd_texture_stubs.inc" #include "mod_texture_banks.c" #include "gl_batch_policy_lle.c" diff --git a/runtime/tests/test_gl_render_thread.c b/runtime/tests/test_gl_render_thread.c index 0d095002..21d91f27 100644 --- a/runtime/tests/test_gl_render_thread.c +++ b/runtime/tests/test_gl_render_thread.c @@ -30,6 +30,7 @@ * surface), and with the thread on its record/acquire counters. * Original source-owned scene; no retail payload. */ #include "gpu_gl_renderer.c" +#include "gl_fmv_fixture.h" #include "gpu_hd_texture_stubs.inc" #include "mod_texture_banks.c" #include "gl_batch_policy_lle.c" diff --git a/runtime/tests/test_gl_scale_invariance.c b/runtime/tests/test_gl_scale_invariance.c index e89d304c..2822d9a5 100644 --- a/runtime/tests/test_gl_scale_invariance.c +++ b/runtime/tests/test_gl_scale_invariance.c @@ -81,6 +81,7 @@ * 3x as the nearest rescale of all their pixels, before any redraw. * Original source-owned scene; no retail payload. */ #include "gpu_gl_renderer.c" +#include "gl_fmv_fixture.h" #include "gpu_hd_texture_stubs.inc" #include "mod_texture_banks.c" #include "gl_batch_policy_lle.c"