Skip to content

Tests: host comparisons take the driver's own answer under Wine - #2466

Merged
ivall merged 1 commit into
mainfrom
tests-host-answers
Nov 25, 2026
Merged

ivall merged 1 commit into
mainfrom
tests-host-answers

Conversation

@ivall

@ivall ivall commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

The host-driver tests merged today in #1612, #1578, #1613 and #1608 fail under Wine with vkd3d-proton, as @JoaoPauluu reported on each of them before the merge; I merged them without acting on that. In every case XCL answers as the driver does, and the test failed on the driver's own answer. Part of #480.

What is in it

  • crates/xcl/tests/d3d12_query_and_command_signature.rs, d3d12_create_committed_resource.rs, d3d12_command_objects_and_root_sig.rs: invalid descriptions compare XCL's result and output pointer with the driver's. The driver's refusal is still required, on Windows only (util::under_wine).
  • crates/xcl/tests/d3d12_create_placed_resource.rs: the null-description step does not run under Wine, where vkd3d-proton dereferences it and the test process ends.
  • crates/xcl/tests/console_heap_contract.rs (Tests: console descriptor heap slot/copy/unregister contract #1687): without unified memory the tests report a skip instead of passing in silence.

Tested

  • AMD RDNA4 (native wave64), Windows 11, DXC 1.8.2502.11, debug, on main 06055a7:
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1411 passed, 2 failed, 46 ignored, 7 SKIPPED lines. The two failures (fuzz_validate_and_gpu_1 seed 722, _3 seed 1599) fail the same way on main.
  • the five changed files, 5 runs each: no failure, no skip.

Regression run

  • not needed: only files under crates/xcl/tests/ change.

Not tested

  • Wine and vkd3d-proton, the case this is for; NVIDIA; Intel. @JoaoPauluu, could you run the five files on this head?
  • The skip of console_heap_contract (unified memory is there on this machine).

AI use

  • Claude Code (Claude Opus 5.5) wrote the change, ran the tests and wrote this on the maintainer's behalf.

The host-driver tests of #1612, #1578 and #1613 required the driver to
refuse invalid descriptions. vkd3d-proton accepts some of them, and XCL
answers as it does, so the tests failed under Wine on the driver's answer
and not on XCL's. They now compare XCL with the driver, and still require
the refusal on Windows. The null-description step of #1608 does not run
under Wine, where vkd3d-proton dereferences it and the process ends.

The console heap tests of #1687 returned in silence without unified
memory; they report a skip now.
@ivall
ivall merged commit 72f848c into main Nov 25, 2026
2 checks passed
raylitebull added a commit that referenced this pull request Nov 25, 2026
Keep amd-dev 0 commits behind origin/main (test-only PRs #2466 and #770; zero runtime changes vs live-verified f7aaee8).

Assisted-by: Antigravity (Gemini 4 Neon High)
@SlopTart

Copy link
Copy Markdown

Fixes one of our four standing Wine-lane reds. Head merged on current main: gpu_ suite 161 passed; 3 failed and gpu_depth_buffer_created_for_unordered_access_is_placed is now green on this lane (it was red before; this is the "take the driver's own answer under Wine" change doing exactly its job). Targeted run of the new tests (subobject_23_is_unknown, the_stream_subobject_table_matches_the_pc_headers, wait64_flags_do_not_mask_the_recorded_counter, wait64_satisfied_counter..., plus the depth-buffer test): 8 passed.

The remaining three are the known baseline (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear from #2280 (report)). Same under_wine() gate pattern would also silence the UAV-clear one for the Wine lane, if you want it kept as a driver-strictness assertion only on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants