Tests: predication_e2e cannot pass under vkd3d-proton: it does not predicate copies #1272
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#1272
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?
@crastinator on GitHub · 2026-11-24 14:04 UTC · original
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
@Diskuss on GitHub · 2026-11-24 14:09 UTC · original
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.
@wbnm77 on GitHub · 2026-11-24 14:18 UTC · original
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.