Skip to content

Tests: assert the stale promoted-UAV-clear refusal on Windows only (vkd3d accepts it under Wine) - #2490

Open
SlopTart wants to merge 1 commit into
xcl-dev:mainfrom
SlopTart:fix-uav-clear-wine-gate
Open

SlopTart wants to merge 1 commit into
xcl-dev:mainfrom
SlopTart:fix-uav-clear-wine-gate

Conversation

@SlopTart

Copy link
Copy Markdown

Follow-up to my report here: since 7fa87890 merged, gpu_promoted_uav_clear_values_pass_create_committed_resource is red on the Wine/vkd3d lane (deterministic 3/3 solo). The reject half of the test encodes Microsoft's runtime validation; vkd3d-proton 3.1 does not check the stale original-format clear value and creates the resource, so the assert fires where the driver simply behaves differently.

This gates that one assert with under_wine(), mirroring the same pattern this week's #2466 used for the depth-buffer state refusal. The promoted-value half (new_cv.Format, the accepting CreateCommittedResource) still runs on both lanes, and no production code is touched.

On this rig (Linux, RADV, RX 7900 XT, wine-11.0 / Proton, vkd3d-proton 3.1 with the XCL patch):

  • before: gpu_promoted_uav_clear_values_pass_create_committed_resource failed 3/3; gpu_ suite 160 passed / 4 failed
  • after this change: the test passes 3/3; gpu_ suite 161 passed / 3 failed, the three remaining are the known baseline (seed-1003 fuzz, mad/mac contraction) plus the depth-buffer one that Tests: host comparisons take the driver's own answer under Wine #2466 fixes

AI use: Hermes agent (local Qwen-class) wrote and ran everything in this PR; I checked the diff and the test results before opening it.

@frenziedcoder

Copy link
Copy Markdown

Windows + NVIDIA check of c54d98e: gpu_promoted_uav_clear_values_pass_create_committed_resource passes with the Windows-only refusal assert active, so the gate keeps that half running where Microsoft's runtime validates it.

  • NVIDIA GeForce RTX 5080 16 GB (driver 621.40), Windows 11 Pro 26200 (native, not Wine, so under_wine() is false), rustc 1.100.0 MSVC, debug.
  • cargo test -p xcl --lib -- gpu_promoted_uav_clear_values_pass_create_committed_resource --test-threads=1 on the exact head: 1 passed, 0 failed. On this host CreateCommittedResource refuses the stale original-format clear value, and accepts the promoted one.
  • Only this test was run; the change is inside #[cfg(test)], so no smoke runs.

AI use: Claude Code (Claude Opus 5.5) ran the test on my machine and wrote this report.

@SlopTart

Copy link
Copy Markdown
Author

Thanks, that is exactly the half this PR could not self-verify. Both lanes now covered:

  • Wine/vkd3d (this rig, Linux/RADV/RX 7900 XT, head c54d98e2): the test goes from failing 3/3 to passing; full gpu_ suite drops from 4 failures to the known 3, nothing else moves.
  • Native Windows (your run, RTX 5080): the refusal assert still runs (under_wine() false) and passes, so the validation stays enforced where Microsoft's runtime does it.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

This was referenced Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants