From c09871b5e0693ece76fc031ba4d05f2e1b71fd12 Mon Sep 17 00:00:00 2001 From: Shokunin <30949000+tetrisgm@users.noreply.github.com> Date: Wed, 7 Oct 2026 12:51:43 -0700 Subject: [PATCH] Test: render thread GL fixture stubs the HD texture pack hooks master's HD texture packs (#557 base) added gpu_hd_textures_* calls to the GL renderer and the gpu_render.c facade; the fixture runs without a pack. Co-Authored-By: Claude Opus 5.5 --- runtime/tests/test_gl_render_thread.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/runtime/tests/test_gl_render_thread.c b/runtime/tests/test_gl_render_thread.c index 3b73852b..11e79573 100644 --- a/runtime/tests/test_gl_render_thread.c +++ b/runtime/tests/test_gl_render_thread.c @@ -23,7 +23,17 @@ * surface), and with the thread on its record/acquire counters. * Original source-owned scene; no retail payload. */ #include "gpu_gl_renderer.c" +#include "gpu_hd_texture_stubs.inc" #include "mod_texture_banks.c" +/* gpu_render.c (the facade) observes draws for HD texture packs: no pack here. */ +int gpu_hd_textures_active(void){return 0;} +int gpu_hd_textures_dump_enabled(void){return 0;} +void gpu_hd_textures_observe_draw(uint16_t tp,uint16_t cx,uint16_t cy,const int l[4], + uint32_t w,int semi){(void)tp;(void)cx;(void)cy;(void)l;(void)w;(void)semi;} +void gpu_hd_textures_set_vram(const uint16_t* v){(void)v;} +void gpu_hd_textures_track_upload(int x,int y,int w,int h,const uint16_t* words){ + (void)x;(void)y;(void)w;(void)h;(void)words;} +void gpu_hd_textures_invalidate(int x,int y,int w,int h){(void)x;(void)y;(void)w;(void)h;} uint32_t psx_mod_gpu_dma_memory_alloc(uint32_t n,uint32_t a){(void)n;(void)a;return 0;} uint32_t psx_mod_read_word(uint32_t a){(void)a;return 0;} int g_psx_vram_dirty_tracking=0;