D3D12.X: forward shading rates on shifted command lists #818
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/824"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by Babyhamsta on 2026-11-24T06:11:18Z.
Forward the newer console command-list slot 126 to the PC shading-rate setter. The title supplies a base rate and two combiners, as documented in the layout investigation. Part of #505.
What is in it
Tested
Windows 11 build 26300.9974, Core i7-13700K, GeForce RTX 4070 (driver 621.35), Rust 1.94.1 MSVC, DXC 1.9.2602.17. Debug workspace tests and release title smokes.
cargo build --offline --locked --workspaceandcargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture. Final run reported 715 passed, 0 failed, 41 ignored. Two of the 715 returned early for lack of wave64. Optional title-data fixtures had no inputs. An earlier run hit a coherent-bufferVirtualFreeassertion that passed on rerun.SV_ShadingRateas 0 for the default rate and 5 for 2×2 through both slot 124 and slot 126. On the unpatched route the same shifted call yielded 0.Regression run
scripts/smoke.ps1 -Game <retail-folder> -Seconds 60, separately built release binaries with fresh 1920×1080 profiles and networking disabled.Not tested
AMD or tier-1 hardware, a shading-rate image, or a change to the opening story’s appearance or playability.
AI use
OpenAI Codex with GPT-6.2 Sol investigated the call, implemented the routing, and ran the focused and workspace tests. Codex coordinated the review and release smokes.
Imported from ivall/xcl. Originally posted by ethandepstein-del on 2026-11-24T06:18:08Z.
Clean-room build, audit, and native hardware test run on NVIDIA RTX 5080 (Windows 11 Pro 25H2
26200.9974, driver617.42/32.0.16.1742,rustc 1.100.0, DXC Windows SDK10.0.26100.0).5c078f554e90fa3b3d8b23b3fc9d57fca26ac454cargo build --workspace): clean (only the pre-existingAtomic::<u32>::fetch_updatedeprecation warning inxgameruntime/mod.rs).cargo test --workspace -- --test-threads=4):715 passed; 0 failed; 41 ignored(SKIPPED: only the 2 hardwareno wave64tests).hle::d3d12x::list_x::vrs_shifted_tests::shifted_vrs_draws_with_requested_rate(VRS tier 2 readback:default=[0,0,0,1],old124=[5,0,0,1],new126=[5,0,0,1], confirming the shifted slot forwards the same 2x2 shading rate)hle::d3d12x::real::shading_rate_slots_cover_both_title_layoutshle::d3d12x::real::queue_tests::queue_slot_18_before_the_layout_is_known_writes_8_bytesQUEUE_LAYOUT_TEST.(Clean-room hardware check only; no retail title or
smoke.ps1run. Assisted-by: Antigravity / Claude Sonnet 5.5 + Gemini 4 Neon)Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T06:21:37Z.
Test run of
5c078f554e90fa3b3d8b23b3fc9d57fca26ac454on AMD RDNA4. I merged it onto currentmainbeaa245locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 715 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 674 passed; 0SKIPPED.Review: Routes slot 126 of shifted lists to the PC shading-rate setter; this adapter supports VRS, so the GPU readback test had real hardware under it. Reviewed the structure, not every line.
Not tested: no retail title or regression run (I have no unpacked game), release build.
Run and review by Claude Code (Claude Opus 5.5) on this machine.
Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T06:55:04Z.
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on
main@beaa245:All green: the forwarded shading rates on shifted lists builds and runs, the workspace has no new failure against
mainon this box (737 passed there), and nothing else changes verdict. Restored the tree afterwards; no game data, hardware adapter, no Wine.AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T07:17:55Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
5c078f5onto main1ec4c98, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 707 passed, 10 failed, 41 ignored. Failures are the known Wine-lane set from my #42 rows plus #718 trio members; nothing here fails because of your change. Shifted command list shading-rate forwarding tests green; no new failures.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T10:38:36Z.
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!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:41:04Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:13:47Z.
Triage (#1607) – head
5c078f5#1944 and #3234 (both open) also route the newer command-list layout's #126 (RSSetShadingRate) to the PC method, each differently: #1944 sends console #124 and #126 through one capability-gated handler that sanitizes the rate, #3234 maps #126/#127 straight to PC #77/#78 through the remap table with no VRS check. This PR gates only #126 and is the only one of the three with a GPU readback test of the shifted path. Main still has no (126, 124) entry in
NEWER_LIST_SLOTS.list_x::set_shading_rate_shiftedcallsCheckFeatureSupport(OPTIONS6, and OPTIONS10 for SUM) on every call; the capabilities could be probed once. The branch conflicts with main, whereNEWER_LIST_SLOTSnow has 23 entries including (69, 67) and (129, 127).Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.