Tests: align device_x UAV strip and pso cache marker tests with main #2233
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!2233
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2233/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?
@raylitebull on GitHub · 2026-11-25 10:52 UTC · original
raylitebull:fix/device-x-uav-promotion-test→main· +6 −3 · 2 files · 2 commits · closed without mergingReconciles two
#[cfg(test)]assertion mismatches onmaincaused by independently merged PR pairs:crates/xcl/src/hle/d3d12x/device_x.rs: alignshle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaawith #1991's UAV promotion (85 -> 28,88 -> 87).crates/xcl/src/gpu/recomp/pso.rs: alignsgpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator(.dxil[0]->.dxil[67]) with #2064'sDXBCtest header alongside #2120.Part of #1833 (test-only fix restoring
cargo test -p xcl --libonmain).What is in it
crates/xcl/src/hle/d3d12x/device_x.rs(#[cfg(test)]only): remove formats85(B5G6R5_UNORM) and88(B8G8R8X8_UNORM) from the unpromoted UAV-strip loop inpc_resource_desc_strips_uav_on_unsupported_formats_and_msaa(already verified inuav_format_promotion_and_linearization) while keeping direct!texture_format_allows_uav(85)/!texture_format_allows_uav(88)assertions and unpromoted non-UAV / MSAA checks.crates/xcl/src/gpu/recomp/pso.rs(#[cfg(test)]only): read.dxil[67]instead of.dxil[0]inrerouted_disk_entries_follow_the_direct_translator(matchingdirect_and_hlsl_disk_entries_are_separateafter #2064).Tested
rustc 1.99.1 (58cf8f9c3 2026-10-13), WARP (D3D12), rebased cleanly ontof087b998(50e4805b).cargo test -p xcl --lib -- --nocapture "hle::d3d12x::device_x::tests" "gpu::recomp::pso::shader_cache_tests": 30 passed, 0 failed, 0 ignored (0.12s,0new warnings).Regression run
#[cfg(test)]-only changes (no runtime code touched).Not tested
cargo test --workspacesuite, standalonescripts/smoke.ps1(test-only PR), and Linux/Wine/vkd3d-proton.AI use
@raylitebull on GitHub · 2026-11-25 11:01 UTC · original
Updated
#2233(50e4805b, cleanly based onf087b998) to also fix the secondorigin/main#[cfg(test)]mismatch (crates/xcl/src/gpu/recomp/pso.rs:1357.dxil[0]->.dxil[67]inrerouted_disk_entries_follow_the_direct_translatorfrom#2064+#2120).Verified locally (
cargo test -p xcl --lib -- --nocapture "hle::d3d12x::device_x::tests" "gpu::recomp::pso::shader_cache_tests":30 passed, 0 failed, 0 ignoredin0.12s).@Toons29 on GitHub · 2026-11-25 11:13 UTC · original
Regression run of
50e4805bon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon568e7db7, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 104 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; a script posted this right after the run, with both blocks exactly as printed.@thehollowedone on GitHub · 2026-11-25 11:17 UTC · original
Independent Windows run on 50e4805. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, debug.
cargo build --offline --locked -j 4 --workspacepassed.cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 --nocapturereported 1,237 passed, 0 failed, 46 ignored, with 25 runtime skip notices included in Cargo's pass count. Both corrected tests and the separate UAV promotion test passed.For a control, I restored only the two affected source files from 9633138 in the same checkout and ran the three named lib tests. The cache assertion read 68 instead of 1, the UAV-strip assertion saw 28 instead of 85, and the promotion test still passed. I restored the PR files afterward.
AI-assisted. Codex (GPT-6, exact variant unavailable) ran the suite and control and drafted this report.
@Daydream3r on GitHub · 2026-11-25 11:24 UTC · original
Independent check on RTX 5070 Ti, exact PR head
50e4805bd35e8ef04b9a846c715b0034e258a091, clean checkout. No source changes.Tested
cargo test --locked -p xcl --lib -- --nocapture --test-threads=1 hle::d3d12x::device_x::tests gpu::recomp::pso::shader_cache_tests: 30 passed, 0 failed, 0 ignored, no skips, exit 0. Both changed tests anduav_format_promotion_and_linearizationexecuted and passed.cargo test --workspace --locked --no-fail-fast -- --test-threads=4: 1233 passed, 4 failed, 46 ignored, exit 101.f087b998d0d51a9f11bbfa0761967a63e778edd9: 1231 passed, 6 failed, 46 ignored, exit 101. Both expectation failures also reproduced individually on that baseline before testing this head.The four failures on both revisions are
gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_{0,1,2,3}: seeds 70/545/1019/1507,CreateComputePipelineStatereturns0x8007000E. The PR removes the two targeted failures; it does not make this adapter's full suite green.Identical 26 explicit SKIPPED lines in both full runs: 20 no native wave64, 3 refused per-lane cases (
V_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32), 2 missing D3D12 debug-layer checks, 1 no heap windows. These passing-return skips are not coverage.Not tested: retail smoke/release build on this PR (test-only diff), AMD/Intel/native wave64, game-data sample coverage. No runtime-correctness or merge-approval claim. Logs remain local.
AI use: Codex desktop, GPT-6 (exact variant not exposed), inspected the diff, checked out the exact revision, ran the builds/tests and extracted these results. No source changes.
@dcastell1 on GitHub · 2026-11-25 12:59 UTC · original
Patch check before spending a build on it: this does not apply to current main.
It applies on its declared base (
5478c4a7), so the code is fine where it was written; it just needs a rebase before it can be verified against today's tree. Nothing else from me on this one.@dcastell1 on GitHub · 2026-11-25 12:59 UTC · original
Correction to my line above: by the time I posted it the PR had already moved (
base=f087b998,head=50e4805b, GitHub reportsmergeable=CONFLICTING). The failed hunk was measured againstmain@1a0bbe3, which is the current tree; the "declared base" number in my previous comment is stale. Rebasing onf087b998or later is what is needed.@raylitebull on GitHub · 2026-11-25 18:13 UTC · original
Superseded by
Pull request closed