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

Open
SlopTart wants to merge 1 commit from upstream-pr/2490 into main
SlopTart commented 2026-11-25 20:11:33 +00:00 (Migrated from github.com)

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


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.

<!-- greyfinch-sync:ivall/xcl:issue:5498401065 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2490). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T20:11:33Z. --- Follow-up to my report [here](https://github.com/xcl-dev/xcl/pull/2280#issuecomment-7172066690): 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.
frenziedcoder commented 2026-11-25 21:05:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by frenziedcoder on 2026-11-25T20:14:42Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7173386786 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2490#issuecomment-7173386786). Originally posted by [frenziedcoder](https://github.com/frenziedcoder) on 2026-11-25T20:14:42Z. --- **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 commented 2026-11-25 21:05:25 +00:00 (Migrated from github.com)

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


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.
<!-- greyfinch-sync:ivall/xcl:comment:7174306492 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2490#issuecomment-7174306492). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T20:52:31Z. --- 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 commented 2026-11-25 21:05:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:53:05Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7174319348 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2490#issuecomment-7174319348). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T20:53:05Z. --- 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!
luckyteagirl commented 2026-11-25 22:06:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T21:37:39Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7175329540 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2490#issuecomment-7175329540). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T21:37:39Z. --- 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.
github-actions[bot] commented 2026-11-30 08:40:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:40:19Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7273197871 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2490#issuecomment-7273197871). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T08:40:19Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 08:11:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:11:04Z.


Triage (#1607) – head c54d98e

On main, the stale-clear-value refusal in device_x.rs tests (Some(&old_cv)) is still asserted on every platform. This PR guards it with under_wine() and keeps the check that the promoted clear value is accepted on both. That is the pattern main already uses for the depth-buffer UAV state (1aca319f). No other open PR makes this change.
Recommendation: keep open.

Separately, the description says a local Qwen-class model wrote and ran this PR, and CONTRIBUTING.md does not accept PRs written with Qwen-class models; that is for the maintainer to decide.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304983301 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2490#issuecomment-7304983301). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:11:04Z. --- **Triage (#1607)** – head c54d98e On main, the stale-clear-value refusal in device_x.rs tests (`Some(&old_cv)`) is still asserted on every platform. This PR guards it with `under_wine()` and keeps the check that the promoted clear value is accepted on both. That is the pattern main already uses for the depth-buffer UAV state (1aca319f). No other open PR makes this change. Recommendation: keep open. Separately, the description says a local Qwen-class model wrote and ran this PR, and CONTRIBUTING.md does not accept PRs written with Qwen-class models; that is for the maintainer to decide. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2490:upstream-pr/2490'
git switch 'upstream-pr/2490'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2490'
git switch 'upstream-pr/2490'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2490'
git switch 'upstream-pr/2490'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2490'
git switch 'main'
git merge --squash 'upstream-pr/2490'
git switch 'main'
git merge --ff-only 'upstream-pr/2490'
git switch 'main'
git merge 'upstream-pr/2490'
git push origin 'main'
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!2480
No description provided.