D3D12.X: map newer-layout RSSetShadingRate/Image (#126/#127) and stop #127 misrouting to DispatchMesh #3234

Closed
Kalmarv wants to merge 1 commit from upstream-pr/3234 into main
Kalmarv commented 2026-11-28 23:37:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-28T23:37:35Z.


Map newer-layout RSSetShadingRate (#126) and RSSetShadingRateImage (#127) to PC ID3D12GraphicsCommandList5 slots #124/#125 in NEWER_LIST_SLOTS, stopping newer #127 from misrouting into bind::dispatch_mesh.

What is in it

  • crates/xcl/src/hle/d3d12x/real.rs: add (126, 124) and (127, 125) to NEWER_LIST_SLOTS, resolve them via newer_list_target (checking console_slots then console_remap -> pc[1 + p]), and update newer_layout_maps_dispatch_mesh_to_slot_129_not_128.

Tested

  • Hardware / toolchain: NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.1074), AMD Ryzen 9 9950X, Windows 11 Pro (build 26200), rustc 1.99.0, DXC 1.9 (XCL_DXC_DIR), debug for unit tests and release for xcl-smoke.
  • Targeted unit test: cargo test -p xcl --lib newer_layout_maps_dispatch_mesh -- --nocapture: 1 passed, 0 failed, 0 ignored.
  • Live steady-world run (BISECT1, RTX 5070 Ti, XCL_DIRECT_DXIL=all): exit 0x0, 1.69 fps (matching baseline), 0 removals, 0 crashes.

Regression run
main (f0e8fdd5c3942ddd399d5ee11384c8595c5aacff):

xcl-smoke v1
commit: f0e8fdd5c3942ddd399d5ee11384c8595c5aacff
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 1695 (PresentX 1695)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 31546 MB

PR head (dfc05ff3f06c63f5fff72a73163e1e8b0d909350):

xcl-smoke v1
commit: dfc05ff3f06c63f5fff72a73163e1e8b0d909350
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 2072 (PresentX 2072)
presents per 2 s (last 3): 50 17 0
device removals: 0
crashes: 0
peak commit: 32135 MB

Not tested

  • AMD RDNA / Intel GPUs.
  • Console-only RSSetShadingRateX (#128).
  • Live VRS-using title verification.

AI use

  • Antigravity (Gemini) assisted with implementation, unit test update, and xcl-smoke regression run.
<!-- greyfinch-sync:ivall/xcl:issue:5545688193 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3234). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-28T23:37:35Z. --- Map newer-layout `RSSetShadingRate` (`#126`) and `RSSetShadingRateImage` (`#127`) to PC `ID3D12GraphicsCommandList5` slots `#124`/`#125` in `NEWER_LIST_SLOTS`, stopping newer `#127` from misrouting into `bind::dispatch_mesh`. **What is in it** - `crates/xcl/src/hle/d3d12x/real.rs`: add `(126, 124)` and `(127, 125)` to `NEWER_LIST_SLOTS`, resolve them via `newer_list_target` (checking `console_slots` then `console_remap` -> `pc[1 + p]`), and update `newer_layout_maps_dispatch_mesh_to_slot_129_not_128`. **Tested** - Hardware / toolchain: NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.1074), AMD Ryzen 9 9950X, Windows 11 Pro (build 26200), `rustc 1.99.0`, DXC 1.9 (`XCL_DXC_DIR`), debug for unit tests and release for `xcl-smoke`. - Targeted unit test: `cargo test -p xcl --lib newer_layout_maps_dispatch_mesh -- --nocapture`: 1 passed, 0 failed, 0 ignored. - Live steady-world run (`BISECT1`, RTX 5070 Ti, `XCL_DIRECT_DXIL=all`): `exit 0x0`, `1.69 fps` (matching baseline), `0` removals, `0` crashes. **Regression run** main (`f0e8fdd5c3942ddd399d5ee11384c8595c5aacff`): ``` xcl-smoke v1 commit: f0e8fdd5c3942ddd399d5ee11384c8595c5aacff gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 1695 (PresentX 1695) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 31546 MB ``` PR head (`dfc05ff3f06c63f5fff72a73163e1e8b0d909350`): ``` xcl-smoke v1 commit: dfc05ff3f06c63f5fff72a73163e1e8b0d909350 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 2072 (PresentX 2072) presents per 2 s (last 3): 50 17 0 device removals: 0 crashes: 0 peak commit: 32135 MB ``` **Not tested** - AMD RDNA / Intel GPUs. - Console-only `RSSetShadingRateX` (`#128`). - Live VRS-using title verification. **AI use** - Antigravity (Gemini) assisted with implementation, unit test update, and `xcl-smoke` regression run.
Foniass commented 2026-11-29 14:57:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-11-29T14:57:40Z.


merge-check
base: d8bd9a38204667f3ca7dd9eeffcc2f1c937b07b0
head: dfc05ff3f06c63f5fff72a73163e1e8b0d909350
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2614 passed, 4 failed, 49 ignored; SKIPPED: 44; failing: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (driver E_OUTOFMEMORY, same on base on this machine)
review: no bug found in the newer-layout #126/#127 mapping or in the stop to #127 going to DispatchMesh. The PR text reports one targeted test and no model.
performance: 60 s smoke: 1670 frames (99.9 %), peak commit 16979 MB (94.6 %)
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti (driver 32.0.16.2114), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

Merge-check run and written with Claude Code (Claude Opus 5.5): a test merge onto the base above, the full suite, and a 60 s scripts/smoke.ps1 run of a retail title against main on the same machine. The 4 fuzz_validate_and_gpu_* failures happen on main on this machine too.

<!-- greyfinch-sync:ivall/xcl:comment:7257709751 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3234#issuecomment-7257709751). Originally posted by [Foniass](https://github.com/Foniass) on 2026-11-29T14:57:40Z. --- ```text merge-check base: d8bd9a38204667f3ca7dd9eeffcc2f1c937b07b0 head: dfc05ff3f06c63f5fff72a73163e1e8b0d909350 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2614 passed, 4 failed, 49 ignored; SKIPPED: 44; failing: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (driver E_OUTOFMEMORY, same on base on this machine) review: no bug found in the newer-layout #126/#127 mapping or in the stop to #127 going to DispatchMesh. The PR text reports one targeted test and no model. performance: 60 s smoke: 1670 frames (99.9 %), peak commit 16979 MB (94.6 %) verdict: safe to merge hardware / tool and model: RTX 5070 Ti (driver 32.0.16.2114), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 ``` Merge-check run and written with Claude Code (Claude Opus 5.5): a test merge onto the base above, the full suite, and a 60 s `scripts/smoke.ps1` run of a retail title against main on the same machine. The 4 `fuzz_validate_and_gpu_*` failures happen on main on this machine too.
Kalmarv commented 2026-12-02 20:30:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-12-02T20:30:37Z.


Closing: consolidated with #3235 into #3727 (rebased onto main 5ad98adbc, full scripts/test.ps1 + paired 60 s scripts/smoke.ps1 verified).

<!-- greyfinch-sync:ivall/xcl:comment:7357847713 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3234#issuecomment-7357847713). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-12-02T20:30:37Z. --- Closing: consolidated with #3235 into #3727 (rebased onto `main` `5ad98adbc`, full `scripts/test.ps1` + paired 60 s `scripts/smoke.ps1` verified).

Pull request closed

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!3234
No description provided.