Tests: assert the refused depth-buffer UAV state on Windows only #1475
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!1475
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1475/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?
@Tjabooo on GitHub · 2026-11-24 16:40 UTC · original
Tjabooo:tests/depth-uav-refusal-windows-only→main· +6 −1 · 1 files · 1 commits · merged 2026-11-25 19:23 UTCgpu_depth_buffer_created_for_unordered_access_is_placed(added in #1353) fails on every Linux run under Wine and vkd3d-proton. Its first check expects D3D12 to refuse placing a depth buffer without the UAV flag inUNORDERED_ACCESS. Microsoft's runtime refuses it; vkd3d-proton doesn't validate that and creates the resource. The rest of the test, which places the resource in the state XCL actually asks for (pc_initial_state→DEPTH_WRITE), passes there. So the refusal is now asserted only when not under Wine (util::under_wine(), as used elsewhere). On Windows the test is unchanged.The same failure on NVIDIA under vkd3d-proton is listed in #1468's description (RTX 4060 Ti, vkd3d-proton v3.1-90), so it is not AMD-specific.
What is in it
crates/xcl/src/hle/d3d12x/device_x.rs(test only): theplace(0x8 & PC_RESOURCE_STATES).is_err()assert runs underif !crate::util::under_wine(), with a comment saying why.Tested
7c048638(see #1425); DXC 2026_09_29. Rust 1.100.0, cross-built forx86_64-pc-windows-gnu, debug. No Windows build.mainb7aa9f3(UNORDERED_ACCESS without the UAV flag), passes with this change.cargo test -p xcl --lib --locked --target x86_64-pc-windows-gnu -- --test-threads=4onb7aa9f3+ this change: 719 passed, 3 failed, 21 ignored, 0SKIPPED. The three are known and fail onmaintoo:gpu_f64_rootsandgpu_f64_math_random(#530),gpu_nonfused_mad_and_mac_prevent_fma_contraction(#676). Same run onmainwithout this change: 718 passed, 4 failed (this test is the fourth).Regression run
device_x.rs's#[cfg(test)]module (it starts at line 1045; the edit is at 1116), and no runtime code changes.pr_check.pycounts the file as runtime by its path, so this asks for thetest-onlylabel (CONTRIBUTING.md, item 3) instead of anxcl-smokerun.Not tested
main).AI use
@futurepro62 on GitHub · 2026-11-24 16:59 UTC · original · edited 2026-11-24 17:14 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
1aca319(on its baseb7aa9f3).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 770 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.#[test]functions in the diff.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 770 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
@pablogonz12 on GitHub · 2026-11-24 17:26 UTC · original
Test report for head
1aca319(based onb7aa9f3): it fixes the failure here.Tested
7c048638, DXC 1.9.2609.5, Rust stable, release,x86_64-pc-windows-gnu,--test-threads=4.gpu_depth_buffer_created_for_unordered_access_is_placed: fails onmain(UNORDERED_ACCESS without the UAV flag), passes on this head.xcllib suite on this head: 717 passed, 5 failed, 21 ignored, 0SKIPPED. The five fail onmaintoo:gpu_f64_roots,gpu_f64_math_random,gpu_nonfused_mad_and_mac_prevent_fma_contraction,xma2_source_voice_decodes_and_manages_lifetime,pe::tests::parses_own_test_binary_tls.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@Tjabooo on GitHub · 2026-11-24 19:39 UTC · original
The red PR description check is the smoke-block requirement:
pr_check.pytreatsdevice_x.rsas runtime by path, and the change sits entirely inside that file's#[cfg(test)]module. Per CONTRIBUTING item 3, this needs thetest-onlylabel rather than anxcl-smokerun, so it is waiting on a maintainer review of the diff.Since opening, it has three independent test reports above: RTX 5070 Ti (Wine), RX 9070 XT on CachyOS (Wine), and RTX 3060 Ti on Windows 11 (where the assert still runs).
@Toons29 on GitHub · 2026-11-25 03:32 UTC · original
Regression run of
1aca319fon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 99 % 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; I checked the blocks before posting.@ivall on GitHub · 2026-11-25 19:23 UTC · original
Merging: the refusal is asserted on Windows only, where the runtime makes it.
Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
main2898511with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (fuzz_validate_and_gpu_1and_3, which fail the same way onmain);hle::d3d12xon 16 threads 5 times, no failure.AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf.