From 8a6217f91ed16ca752c4d75a4223cb51de3d072b Mon Sep 17 00:00:00 2001 From: Matthew Stanley <1379tech@gmail.com> Date: Sat, 24 Oct 2026 11:06:02 -0700 Subject: [PATCH] Check the separate pinned and on-demand cache accounting --- runtime/tests/test_gl_hd_texture_pack.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/tests/test_gl_hd_texture_pack.c b/runtime/tests/test_gl_hd_texture_pack.c index 98e63858..48c84a14 100644 --- a/runtime/tests/test_gl_hd_texture_pack.c +++ b/runtime/tests/test_gl_hd_texture_pack.c @@ -455,8 +455,10 @@ static void cache_pressure_scene(const char* root) { } check(ready,"full CPU budget pressure image decoded");gpu_hd_textures_get_diag(&after); /* All fixture images fit in the bounded preload and remain pinned. - * The configured 1 MiB on-demand budget must not evict that preload. */ - check(before.decoded_bytes>1024*1024 && + * The configured 1 MiB on-demand budget must not evict that preload. + * decoded_bytes accounts only the on-demand cache; pinned bytes are + * separately bounded and are not charged against this budget. */ + check(before.decoded_images>=7 && before.decoded_bytes==0 && after.decoded_bytes==before.decoded_bytes && after.decoded_images==before.decoded_images && after.decode_evictions==before.decode_evictions,