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

Merged
ivall merged 1 commit from upstream-pr/2466 into main 2026-11-25 19:35:46 +00:00
ivall commented 2026-11-25 19:30:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:30:55Z.


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 (#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.
<!-- greyfinch-sync:ivall/xcl:issue:6612117787 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2466). Originally posted by [ivall](https://github.com/ivall) on 2026-11-25T19:30:55Z. --- 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` (#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.
upstream-sync closed this pull request 2026-11-25 20:08:17 +00:00
SlopTart commented 2026-11-25 20:08:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T20:02:47Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7173111579 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2466#issuecomment-7173111579). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T20:02:47Z. --- **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](https://github.com/xcl-dev/xcl/pull/2280#issuecomment-7172066690))). 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 in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2456
No description provided.