From 1f6595ebeeeea69d6078afee2a225b57172e4e57 Mon Sep 17 00:00:00 2001 From: Shokunin <30949000+tetrisgm@users.noreply.github.com> Date: Wed, 7 Oct 2026 12:56:48 -0700 Subject: [PATCH] Test: frame generation GL fixture stubs the HD texture pack hooks; TCP index 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. The command index is regenerated for frame_gen. Co-Authored-By: Claude Opus 5.5 --- docs/TCP_COMMANDS.md | 5 +++-- runtime/tests/test_gl_frame_gen.c | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/TCP_COMMANDS.md b/docs/TCP_COMMANDS.md index 6a643202..c9028a2f 100644 --- a/docs/TCP_COMMANDS.md +++ b/docs/TCP_COMMANDS.md @@ -479,9 +479,9 @@ between Play and TCP availability. ## Complete command index (generated) -**358 commands registered** — 345 on the native server (`runtime/src/debug_server.c`), 61 on the Beetle server (`runtime/src/beetle_debug_server.c`). +**359 commands registered** — 346 on the native server (`runtime/src/debug_server.c`), 61 on the Beetle server (`runtime/src/beetle_debug_server.c`). -72 of 358 have prose above; **286 are index-only**. An index-only command still works — it just has no description here yet. Send it `{"cmd":""}` and read the reply, or find its `handle_*` function in the server source. +72 of 359 have prose above; **287 are index-only**. An index-only command still works — it just has no description here yet. Send it `{"cmd":""}` and read the reply, or find its `handle_*` function in the server source. Regenerate with `python tools/gen_tcp_commands.py`; `--check` fails if this block has drifted from the code. @@ -602,6 +602,7 @@ Regenerate with `python tools/gen_tcp_commands.py`; `--check` fails if this bloc | `fntrace_unfiltered` | | ✓ | | | `frame` | ✓ | | ✓ | | `frame_fingerprint` | ✓ | | ✓ | +| `frame_gen` | ✓ | | | | `frame_perf` | ✓ | | | | `frame_range` | ✓ | ✓ | ✓ | | `frame_timeseries` | ✓ | ✓ | ✓ | diff --git a/runtime/tests/test_gl_frame_gen.c b/runtime/tests/test_gl_frame_gen.c index fae8b147..d15184be 100644 --- a/runtime/tests/test_gl_frame_gen.c +++ b/runtime/tests/test_gl_frame_gen.c @@ -19,7 +19,17 @@ static void fixture_present(int generated); #define GL_PRESENT_TEST_HOOK(gen) fixture_present(gen) #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;