Repository navigation
Conversation
D3DMetal 3.0 applies SetPredication for draws, dispatches and ExecuteIndirect but not for copies: a predicated CopyBufferRegion runs unconditionally. The UMA shadow path (next commit) makes UMA available on this host, so the predication test would run and fail. A one-copy probe detects whether a predicated copy is skipped (Windows, any real D3D12) or run (D3DMetal). When run, the test skips with "host ignores SetPredication for copies" instead of failing. Based on us3r40456's bisect and measurement in xcl-dev#258. Co-authored-by: Ahmet Dedeler <105894172+Ahmet-Dedeler@users.noreply.github.com> Assisted-by: Claude Code (Claude Opus 4.6 ported it; Claude Opus 5.5 reviewed it)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
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
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
A run on AMD RDNA 3.5 under Wine + vkd3d-proton. Here the host ignores predication for copies: Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
One more vkd3d-proton run, on RDNA2: the probe takes the skip and the test passes.
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. |
|
Closing: its commit is in |
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, Tests: skip predication_e2e when the host runs predicated copies #1327 (comment)).Regression run
Test-only change in
crates/xcl/tests/: noxcl-smokeblocks.Not tested
AI use