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

Open
github-bot wants to merge 1 commit from github-bot/gh-2490 into main AGit
Owner

@⁠SlopTart on GitHub · 2026-11-25 20:11 UTC · original
SlopTart:fix-uav-clear-wine-gate → main · +7 −1 · 1 files · 1 commits · open

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 #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.

**@⁠SlopTart** on GitHub · 2026-11-25 20:11 UTC · [original](https://github.com/xcl-dev/xcl/pull/2490) `SlopTart:fix-uav-clear-wine-gate` → `main` · +7 −1 · 1 files · 1 commits · open Follow-up to my report [here](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2280): 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 #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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:31:59 +00:00
Author
Owner

@⁠frenziedcoder on GitHub · 2026-11-25 20:14 UTC · original

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.

**@⁠frenziedcoder** on GitHub · 2026-11-25 20:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/2490#issuecomment-7173386786) **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.*
Author
Owner

@⁠SlopTart on GitHub · 2026-11-25 20:52 UTC · original

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.
**@⁠SlopTart** on GitHub · 2026-11-25 20:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/2490#issuecomment-7174306492) 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 20:53 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 20:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/2490#issuecomment-7174319348) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-25 21:37 UTC · original

Independent RX 6800M Windows check of exact PR head c54d98e2ad3c7c1efb4336e50ab11ac396e38414 in a clean detached worktree.

Tested

  • AMD Radeon RX 6800M, driver 30.0.13002.13003; Windows 11 Home build 26200; Ryzen 9 5980HX; Rust 1.99.0 (stable-x86_64-pc-windows-msvc). Selected with XCL_ADAPTER=6800M.
  • cargo test --locked -j 2 -p xcl --lib -- gpu_promoted_uav_clear_values_pass_create_committed_resource --test-threads=1 --show-output: 1 passed, 0 failed, 0 ignored (1,309 filtered out). No SKIPPED output. The focused run completed under the 1 GiB free-commit / 512 MiB free-physical memory guard; the guard did not trigger.

Not tested

  • Full workspace suite or retail titles.

AI use

  • OpenAI Codex (GPT-6; exact variant unavailable) ran the focused test and prepared this report.
**@⁠luckyteagirl** on GitHub · 2026-11-25 21:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/2490#issuecomment-7175329540) Independent RX 6800M Windows check of exact PR head `c54d98e2ad3c7c1efb4336e50ab11ac396e38414` in a clean detached worktree. **Tested** - AMD Radeon RX 6800M, driver `30.0.13002.13003`; Windows 11 Home build `26200`; Ryzen 9 5980HX; Rust `1.99.0` (`stable-x86_64-pc-windows-msvc`). Selected with `XCL_ADAPTER=6800M`. - `cargo test --locked -j 2 -p xcl --lib -- gpu_promoted_uav_clear_values_pass_create_committed_resource --test-threads=1 --show-output`: **1 passed, 0 failed, 0 ignored** (1,309 filtered out). No `SKIPPED` output. The focused run completed under the 1 GiB free-commit / 512 MiB free-physical memory guard; the guard did not trigger. **Not tested** - Full workspace suite or retail titles. **AI use** - OpenAI Codex (GPT-6; exact variant unavailable) ran the focused test and prepared this report.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2490/head:github-bot/gh-2490'
git switch 'github-bot/gh-2490'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2490'
git switch 'github-bot/gh-2490'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2490'
git switch 'github-bot/gh-2490'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2490'
git switch 'main'
git merge --squash 'github-bot/gh-2490'
git switch 'main'
git merge --ff-only 'github-bot/gh-2490'
git switch 'main'
git merge 'github-bot/gh-2490'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.