Tests: predication_e2e cannot pass under vkd3d-proton: it does not predicate copies #1262
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 crastinator on 2026-11-24T14:04:22Z.
set_predication_buffer_state_and_kickoff(crates/xcl/tests/predication_e2e.rs) fails under every Wine + vkd3d-proton setup I know of. The cause is on the vkd3d-proton side: it does not predicate copies. Every case in the test checks predication throughCopyBufferRegion, so the test cannot pass there.What happens (
main930e8b4)The copy ran:
dst[0]holds the source value, not the initial one. #794's description lists the same failure on an RTX 4090 under Proton, so it does not depend on the GPU.Why
CopyBufferRegion,CopyTextureRegion,CopyResourceandCopyTilesamong "the operations which can be predicated".SetPredicationBufferX(hle/d3d12x/list_x.rs,apply_predication_copy) calls the host'sSetPredication. That is correct on Windows.VK_EXT_conditional_rendering, plus a shader fallback for draws and dispatches.d3d12_command_list_CopyBufferRegionrecordsvkCmdCopyBuffer2without looking at the predicate. This is true in v3.1 and still onmastertoday (ec207194), and I found no vkd3d-proton issue about it.VK_EXT_conditional_renderingcovers draws and dispatches, not transfer commands.Options I can see
util::under_wine(), as in8fde77a). That is test-only, but it means copy predication goes unchecked on Linux and macOS.Which direction would you take? I can do 1 (or help with 2) once that's decided.
Tested
dxgi. XCL cross-built forx86_64-pc-windows-msvc, debug.cargo test -p xcl --test predication_e2e: fails as above every run.AI use
Imported from ivall/xcl. Originally posted by Diskuss on 2026-11-24T14:09:44Z.
Native Windows data point: AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32015.7029; Ryzen 7 5700X3D; 32 GB RAM; Windows 11 Pro build 26300.9974; Rust 1.100.0 x86_64-pc-windows-msvc; debug build.
At
origin/main930e8b49c1:cargo test -p xcl --test predication_e2e -- --test-threads=1, 5 runs: 1 test ran each time (set_predication_buffer_state_and_kickoff), 5/5 passed, 0 failed, 0 SKIPPED printed. With--nocaptureit ran took; the only debug-layer message is "debug layer requested but unavailable" (no Graphics Tools installed). No silent skip.cargo test -p xcl --lib predication -- --test-threads=1: this filter matches one unit test (hle::d3d12x::list_x::tests::set_predication_buffer_state_transitions_and_lifecycle), 1 passed. The e2e test lives incrates/xcl/tests, so--libdoes not run it.This supports the explanation: the same test passes on native D3D12, including
EQUAL_ZERO(0) must skip dst[0], so the failure comes from the Wine + vkd3d-proton layer. I did not test vkd3d-proton myself.AI use: Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine.
Imported from ivall/xcl. Originally posted by wbnm77 on 2026-11-24T14:18:59Z.
Tested
XCL
930e8b49c1c2ec683d22c724a398b39111cd0e56on native Windows 10 Pro 22H2 build 19045.6466, RTX 5060 Ti driver 621.24, Rust 1.98.1 MSVC, Agility SDK 1.620.2 and DXC 1.9.2602.17. I ran the builtpredication_e2etest binary withset_predication_buffer_state_and_kickoff --exact --test-threads=1 --nocapturein ten fresh processes. All ten passed and logged the real NVIDIA D3D12 backend, with no runtime test skip. The copy and readback assertions ran.Not tested
Wine, retail games and D3D12 debug diagnostics. The debug layer was unavailable with
0x887A002D.AI use
Codex (GPT-6) assisted with running the tests and writing this report from the local results.
upstream-sync referenced this issue2026-11-25 07:04:28 +00:00
Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-27T20:04:12Z.
On "whether titles predicate copies at all": the retail title called neither SetPredicationBufferX nor SetPredication with a buffer in 2 of 2 runs of 301 s under Wine, about 240 s of each after its world load began, so it recorded no predicated copy there. That speaks for a test-only change (option 1) as far as this title goes; #1327 is one, skipping the test on a host that runs a predicated copy.
Setup: our Linux branch
linux/stack8df733bd(mainf9a0cb80with open pull requests merged in) plus log lines only, not pushed: whereSetPredicationBufferXsets a predication, at the standardSetPredicationwith a buffer, and at each title copy recorded while either is set (CopyBufferRegion,CopyTextureRegion,CopyResource, their flag variants,CopyMemoryX, theFillMemoryWith…X). RTX 4060 Ti 16 GB, NVIDIA 615.71.09, Wine 11.21 Staging, vkd3d-protonv3.1-90-g30b0eb9bwith three local patches (relaxed vtable checks, a dxil-spirv patch, command pools released atReset).XCL_DIRECT_DXIL=1 XCL_PREPARE=0 XCL_SKIP_BINK=1 XCL_PSO_DISK_CACHE=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_DXC_THREADS=4 XCL_ACTIVITY=1, andVKD3D_CONFIG=ignore_shared_fencein run 2 only. The first-run screens were completed once, no story progress.main6089122a+ those lines without the one atSetPredication,XCL_PREPARE=0 XCL_SKIP_BINK=1, 1 runNot tested
AI use: Claude Code (Claude Opus 5.5 and Claude Fable 5.2) wrote the log lines, read the runs and wrote this.
Posted without review by a person: the account owner was away and reads replies later.
Imported from ivall/xcl. Originally posted by crastinator on 2026-11-28T16:59:31Z.
Thanks @Royalflamejlh, that points to option 1. #1327 does it with a probe instead of a Wine check, so it covers vkd3d-proton as well as D3DMetal. With it the test now skips under vkd3d-proton on RDNA2, RDNA 3.5 and an RTX 3060, and still runs and passes on native Windows. I'll close this issue when #1327 merges.