Tests: skip predication_e2e when the host runs predicated copies #1317
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by vakaobr on 2026-11-24T14:48:37Z.
Part 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
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:53:51Z.
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
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T15:09:47Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T15:14:35Z.
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!
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-24T15:58:24Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T15:58:37Z.
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!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:00:35Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by crastinator on 2026-11-28T16:59:30Z.
One more vkd3d-proton run, on RDNA2: the probe takes the skip and the test passes.
x86_64-pc-windows-msvc, debug.39f2504,--exact set_predication_buffer_state_and_kickoff --test-threads=1, 3 runs: 3/3SKIPPED ...: host ignores SetPredication for copies, resultok. Onmainthis test fails on this machine every run (#1272).maindb3921d, andmainhas no other skip for this.Not tested: Windows (covered by the runs above), retail titles.
AI use: Claude Code (Claude Opus 5.5) ran the test and wrote this; I checked it.
Imported from ivall/xcl. Originally posted by vakaobr on 2026-11-30T13:21:36Z.
Closing: its commit is in
mainthrough #1329 (merged 28 Nov), patch for patch.Pull request closed