Title textures test: a 16 KiB texture in a small-pool block has no tiles #3661
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3661"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by AC-Storm-YT on 2026-12-02T05:14:48Z.
Part of #2632 (lane 4 of #2996). Test-only: both changes are
#[cfg(test)], so I'd ask for thetest-onlylabel instead of a smoke run.placed_title_textures_share_vram_and_preserve_pixelshas failed onamd-devsinceaeefef10wiredvram_smallback in. A sampled texture under 64 KiB that is not over a live page now gets a 4 KiB block of a shared heap and no tiles, but the test expected the 16 KiB texture at +0x4000 to have tile mappings, and expected covering the first 64 KiB to reclaim its extra pages. There are none: run alone, the page count still fell by one 64 KiB page (an idle sweep, as the test's comment allows); after the othertitle_texturestests it stayed equal. Its panic holdsTEST_LOCK, so four moretitle_texturestests then failed withPoisonError.What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs: when the 16 KiB texture is in a small-pool block, the test checks that placing it again at the same va shares the block, and that covering the small-pool textures takes no new page. The tile and extra-page assertions are unchanged and still run when the textures are on pages (XCL_VRAM_SMALL=0).crates/xcl/src/hle/d3d12x/vram_small.rs:block_for, a#[cfg(test)]helper returning a texture's (pool, offset).Tested
stable-x86_64-pc-windows-msvc; DXC 1.8.2502.11; debug;XCL_ADAPTER=9070, noXCL_SAMPLE_*.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4:amd-dev41aa60ce: 2961 passed, 8 failed, 49 ignored41aa60cetoo:fuzz_validate_and_gpu_1(#2115),sparse::tests::private_physical_pages_reach_the_gpu_on_mapping,gpu_two_pass_cache_e2etwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs.SKIPPED: the per-lane forms off16_programs_on_the_gpu/f32_programs_on_the_gpu(refused V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32),two_pass_binds_set_the_shared_view_heapandheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(Developer Mode off).--exact --test-threads=1): fails on41aa60ce("the first unaligned placement is mapped"); passes on this PR, 3 of 3 runs. Thehle::d3d12x::title_textures::tests with--test-threads=4: 67 passed, 4 failed on41aa60ce; 71 passed, 0 failed on this PR (2 runs). The same two withXCL_VRAM_SMALL=0also pass, so the tile and extra-page assertions still run.Regression run
#[cfg(test)]only).Not tested
main: this applies toamd-devonly (mainhas novram_small).AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T05:15:34Z.
Review (head
78462f65, diff read, not a merge-check; draft, checks red):No problems found in the diff. Checked that the small-pool branch (
title_textures.rs~7482-7492) applies only when the first 16 KiB texture actually got avram_smallblock, that the tile and extra-page assertions still run unchanged when the textures are on pages (XCL_VRAM_SMALL=0), that the strict "extra pages reclaimed" check is kept whenever any of the superseded textures has extra tiles (superseded_extra, ~7510-7520) and relaxed to "no new page" only when none does, and thatvram_small::block_foris#[cfg(test)], so there is no runtime change. Thetest-onlylabel is the maintainer's call.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T19:56:01Z.
@Prime1997 could you take a look at this one for review and merge? My automated review notes are above, if any.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.