Tests: skip predication_e2e when the host runs predicated copies #1327
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!1327
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1327"
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?
@vakaobr on GitHub · 2026-11-24 14:48 UTC · original
vakaobr:tests/predication-copy-skip→main· +59 −0 · 1 files · 1 commits · openPart of #258. D3DMetal 3.0 skips predicated draws, dispatches and
ExecuteIndirect, but runs predicated copies and clears (measured with a plain D3D12 program, and first reported in #258 by @us3r40456). Onmainthe Mac never reachesset_predication_buffer_state_and_kickoff(it skips with "no GPU UMA"). Once the unified memory copy path lands, it runs and fails. This PR adds a one-copy probe and skips the test with "host ignores SetPredication for copies" on such a host. It is meant to merge before the copy path, so no test regresses on the Mac.What is in it
crates/xcl/tests/predication_e2e.rs:host_runs_predicated_copies(): a predicate of 0 withEQUAL_ZERO, one predicated 4-byte copy and one unpredicated control into a readback buffer; the test skips only when the predicated copy ran and the control did.Tested
x86_64-pc-windows-gnu(mingw-w64 GCC 16.2.0), debug, DXC 1.9.2609. Each test in its own process (<test exe> --exact <test> --test-threads=1 --nocapture).mainwith this PR (head39f2504):set_predication_buffer_state_and_kickoffstill skips with "no GPU UMA", because the probe is not reached without unified memory on this host.4a11de6): it skips with "host ignores SetPredication for copies".cargo test --workspace -- --test-threads=4: 751 passed, 0 failed, 41 ignored on both;set_predication_buffer_state_and_kickoffran and passed on both, the probe not skipping it on either native driver (@futurepro62, https://github.com/ivall/xcl/pull/1327#issuecomment-7135126721).Regression run
Test-only change in
crates/xcl/tests/: noxcl-smokeblocks.Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 14:53 UTC · original · edited 2026-11-24 14:57 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
39f2504(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 751 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: 751 passed, 0 failed, 41 ignored, no skips.tests/predication_e2e.rs:set_predication_buffer_state_and_kickoffran and passed on both GPUs. The newhost_runs_predicated_copiesprobe did not skip it on either native D3D12 driver (NVIDIA, AMD), as expected.Not tested
AI use
@JoaoPauluu on GitHub · 2026-11-24 15:09 UTC · original
A run where the host does ignore predication for copies: vkd3d-proton under Wine on Linux. The skip is taken here and the test no longer fails.
Tested
x86_64-pc-windows-gnu.39f2504as it is (based on930e8b4) andmain930e8b4, no uncommitted changes. The test binary runs under Wine, one test per process (--exact).predication_e2e::set_predication_buffer_state_and_kickoff:main930e8b4: fails,predication_e2e.rs:360,EQUAL_ZERO(0) must skip dst[0],left: 2863267840. This is the same failure @itsd-effex listed for Wine on #257.SKIPPED set_predication_buffer_state_and_kickoff: host ignores SetPredication for copies.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 15:14 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib -- --test-threads=1: 707 passed, 0 failed, 21 ignored. (The default parallel run aborted once with 0xc0000005 — same test-harness flake seen on unmodifiedmainunder load; single-threaded is clean.)Thanks!
@KOLESNiii on GitHub · 2026-11-24 15:58 UTC · original
A run on AMD RDNA 3.5 under Wine + vkd3d-proton. Here the host ignores predication for copies:
mainfails as in #1272 and this PR takes the skip.Tested
-Db_ndebug=true(built with #257'sbuild-vkd3d-proton.sh), DXVK v3.1.1-209dxgifrom Proton,VKD3D_CONFIG=ignore_shared_fence, DXC 1.9.2609.x86_64-pc-windows-gnu(mingw-w64 GCC 13-posix), debug. Each test binary from a clean checkout of its commit (no uncommitted changes), run under Wine one test per process:<exe> set_predication_buffer_state_and_kickoff --exact --test-threads=1 --nocapture, 3 runs each.main930e8b4: fails 3/3 atpredication_e2e.rs:360,EQUAL_ZERO(0) must skip dst[0],left: 2863267840,right: 286331153(the copy ran), the same failure as in #1272.39f2504: ok 3/3,SKIPPED set_predication_buffer_state_and_kickoff: host ignores SetPredication for copies.maindoes not get as far as the predication part:Assertion failed: iface->lpVtbl == &d3d12_resource_vtbl(#241).Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 15:58 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib -- --test-threads=1: all passed, 0 failed, 21 ignored. (Parallel runs intermittently abort with 0xc0000005 — same harness flake seen on unmodifiedmain.)Thanks!
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.