Title textures test: the process's video memory is not asserted (other GPU tests allocate at the same time)

placed_title_textures_share_vram_and_preserve_pixels (PR #288) asserted the process's local
video memory grew under 384 MB; under --test-threads=4 on an RX 9070 other GPU tests in the
process made it +672 MB, alone it passes. The page count, which the change controls, stays
asserted exactly.
This commit is contained in:
ivall
2026-11-24 00:39:23 +01:00
parent aeaeecb49b
commit 29fb6b7a6f
+4 -1
View File
@@ -1367,7 +1367,10 @@ mod tests {
println!("512 unreleased 1 MiB textures over 16 MiB: +{pages_delta} B pages (after fill: +{} B), +{vram_delta} B local VRAM (after fill: +{vram_after_fill} B), +{kept_delta} active kept", dev_pages() - pages16);
assert_eq!(pages_delta, 16 << 20, "pages must equal covered 16 MiB, not 512 MiB");
assert_eq!(dev_pages(), pages16, "no pages added after working set is covered");
assert!(vram_delta < 384 << 20, "local VRAM grew past working set: total +{vram_delta} B, after fill +{vram_after_fill} B");
// (the process's local video memory is not asserted: other GPU tests in the process
// allocate at the same time - on an RX 9070 it read +672 MB under --test-threads=4 and
// stayed within the bound alone; the page count above is what this change controls)
let _ = vram_after_fill;
assert_eq!(kept_delta, 16, "superseded placements must be retired from active tracking");
// 2. Overlap integrity (rows 4, 5, 6) + unmap/remap on different-range overlap: