From 63d7761b1a53b42d787f49f3587d8efdfd4e2e83 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 23 Nov 2026 21:36:27 -0800 Subject: [PATCH] :white_check_mark: Hold the ids of a Windows drawn test's textures drawn_tests' a_decode_drawn_into_a_caches_surface_makes_no_memory_of_its_buffer makes textures 21 and 22 at resource ids its context never held, so their TEXTURE_FROM_IOSURFACE was refused (BadResourceId) before the test reached what it checks, on the Windows host where it runs (it is ignored elsewhere). It now holds its context's chunk of ids first, as the other rigs that make textures do. --- crates/reims-vgpu/src/graphics/decode/surface_cache/exported.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/reims-vgpu/src/graphics/decode/surface_cache/exported.rs b/crates/reims-vgpu/src/graphics/decode/surface_cache/exported.rs index 4cd15e687..5fd2f11e4 100644 --- a/crates/reims-vgpu/src/graphics/decode/surface_cache/exported.rs +++ b/crates/reims-vgpu/src/graphics/decode/surface_cache/exported.rs @@ -1380,6 +1380,7 @@ mod drawn_tests { let draw = Arc::new(PlaneDraw::new(None).expect("the plane draws")); for whole in [true, false] { let mut r = cached(); + r.dec.hold_resource_ids(0, 1); let page = r.page; assert_eq!(r.buffer(10, BLOCK, 2 * page), Ok(())); // Textures 21 and 22 over buffer 10, each over its plane of [`PLANES`], as a decode's