d3d12_xs tests: check every detiled element and time the 1 MB detile only in optimized builds #323
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!323
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/323/head"
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?
@GDAgent on GitHub · 2026-11-23 19:02 UTC · original
GDAgent:fix/d3d12-tests-detile-timing→main· +7 −1 · 1 files · 1 commits · closed without mergingWhat
Test only (
upload.rs,detile_speed_tests). No runtime change, no exports change.upload::detile_speed_tests::one_megabyte_detiles_on_one_thread_in_a_few_msapplies only whendebug_assertionsare off, that is in optimized builds, where it still measures the code that ships.detile_span, and an optimized run can no longer pass on wrong output (before, the test never looked at the data).Why
The test times
detile_spanon a 512x512x4 surface (best of 10) and asserted< 20 msin every build profile. In a debug build the single-thread detile takes about 6 to 16 ms, so the bound has little margin and fails when the suite runs next to other memory-heavy work. Measured on one machine, 50 runs per row, best of 10 as the test reports it:Not touched:
dbcount::tests::translated_pixel_shaders_with_uavs_keep_their_source, the other test that fails intermittently in full single-threaded runs. #276 fixes it.Tests
RDNA2 gfx1032,
TOMBOX_REMOVED_EXIT_MS=off, native Windows 11; not run under Proton.cargo test -p d3d12_xs --lib -- --exact upload::detile_speed_tests::one_megabyte_detiles_on_one_thread_in_a_few_ms: 1 passed (debug build, 6.18 ms reported; re-run on the final commit).--release: 1 passed (1.05 ms reported), measured when the change was written.cargo test -p d3d12_xs --lib -- --test-threads=1: 663 passed, 5 failed, 71 ignored when the change was written; the detile test passed. The five failures are the same as onmainon this GPU: three placement tests that fail here (separate PR, theGetResourceAllocationInfoone), the console-DLL fixture test (xs_exports::console_fixed_tests::fixed_result_dxgix_exports_match_every_console_d3d12_xs, needs a consoled3d12_xs.dll), and the intermittentdbcounttest that #276 fixes.pr_gate.py --base origin/main: 0 problems.upload.rs).Not verified
@omonkeyz on GitHub · 2026-11-25 13:49 UTC · original
Applied on main in
282d358(cherry-picked onto the current history with your authorship kept; comment lines stripped per CONTRIBUTING). Thank you.Pull request closed