Tests: count the placed-texture test's own pages, not the device's #2591
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2591
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2591"
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?
@sage-sage on GitHub · 2026-11-26 00:48 UTC · original
sage-sage:tests/placed-texture-own-pages→main· +18 −7 · 1 files · 1 commits · openplaced_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
@DavidM1911 on GitHub · 2026-11-26 01:09 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 26 ignored.Thanks!
— Devin
@fromthemoonx on GitHub · 2026-11-26 01:41 UTC · original
On NVIDIA the flake shows on
mainand not with this change:placed_title_textures_share_vram_and_preserve_pixelsfailed 1 of 85 runs onmain(the samepages must equal covered 16 MiBassert,left: 11141120) and 0 of 135 with this PR. At that rate this only supports the fix; it does not prove it.Tested:
52fedb7merged ontomainb49be18(clean). RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X (16 threads), Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug.cargo test --workspace --no-fail-fast -- --test-threads=4SKIPPEDlineshle::d3d12x:: --test-threads=12(254 tests),main, 85 runsa_dispatch_with_a_pipeline_still_building_waits_at_the_submit3×,rotating_queue_…2×,cross_queue_wait64_…1× (known parallel flakes, see #2118 / #2547)a_dispatch_with_a_pipeline_still_building_…2×. Two other runs ended with a segmentation fault and no failing test named. I did not keep those two outputs, and 75 later runs had none, so I can't say which test it was or whether it is related.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.
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.