Repository navigation
Conversation
placed_title_textures_share_vram_and_preserve_pixels checked that 512 1 MiB textures placed over 16 MiB use 16 MiB of pages by reading the device-wide page bytes (`vram::page_bytes_for`). D3D12CreateDevice hands every test in the process the same device for an adapter, and tests outside VRAM_TEST_LOCK add and expire targets on it while this test runs, so the count can move under it. On an RTX 4080 SUPER under `cargo test -p xcl --lib -- --test-threads=12` it failed in 1 of 34 runs with `left: 11141120, right: 16777216`. The two checks now use the union of the (pool, tile) pages that this test's 512 textures map (`vram::tile_mappings_for`, which already exists for this reason): 256 distinct 64 KiB pages after the first 16 placements, and the same set after all 512. A placement that took fresh pages instead of sharing would still fail it (8192 pages). Assisted-by: Claude Code (Claude Opus 5.5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sage-sage
marked this pull request as ready for review
November 26, 2026 00:49
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! — Devin |
|
On NVIDIA the flake shows on Tested:
Not tested: AMD / Intel, a release build. AI use: Claude Code (Claude Opus 5.5) ran the suite and the repeat runs, and wrote this report. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
placed_title_textures_share_vram_and_preserve_pixelsfails now and then when tests run with more threads:its first part reads the device-wide page bytes (
vram::page_bytes_for), but every test in the processgets the same
ID3D12Devicefor an adapter, and tests that do not holdVRAM_TEST_LOCKadd and expiretargets on it at the same time. Seen as:
The test now counts the distinct pages its own 512 textures map (
vram::tile_mappings_for, whose commentalready says device-wide counts can shrink when unrelated idle targets expire), with the same two
assertions: 16 MiB of pages after the first 16 placements, and no page added by the other 496.
What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs: the first part of the test counts the union of itstextures'
(pool, tile)pages instead ofpage_bytes_for(device). Test code only; the laterdev_pages()checks in the same test are unchanged.Tested
DXC 1.9.2602.17 (Windows SDK 10.0.26100), debug build, base
08db802, head52fedb7cargo test --workspace -- --test-threads=4: 1429 passed, 0 failed, 47 ignoredcargo test -p xcl --lib -- --test-threads=12: before the change the test failed in 1 of 34 runs;with it, 0 failures of this test in 40 runs. (One of those 40 runs failed in
list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit, an unrelated flaky testI will report separately.)
layer (
d3d12SDKLayers.dllnot installed), andpso_measurement_compiles_an_exact_synthetic_record(Developer Mode off)
Regression run
#[cfg(test)] mod testsoftitle_textures.rsonly, so this asks for thetest-onlylabel.Not tested
pages_after_cover < pages_before_reusestill reads the device-wide countand could in principle be hit the same way; I have not seen it fail and left it alone.
AI use
ran the tests and wrote this description. I read and checked the diff.
🤖 Generated with Claude Code