No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1213
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1213/head"
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?
@shzyjbr06-dev on GitHub · 2026-11-24 13:18 UTC · original
shzyjbr06-dev:fix/newer-list-shading-rate→main· +19 −4 · 1 files · 1 commits · closed without mergingForwards
RSSetShadingRate(#126-> PC#77) andRSSetShadingRateImage(#127-> PC#78) onQUEUE_SHIFTEDnewer-layout console command lists instead of dropping them into the(not on PC)stub path. Part of #505.What is in it
crates/xcl/src/hle/d3d12x/real.rs: addsNEWER_LIST_REMAP: [(usize, usize); 2] = [(126, 77), (127, 78)]and chains those shifted PC-forwarded slots intomake_layout_splitinsideclass_foralongsideNEWER_LIST_SLOTS.crates/xcl/src/hle/d3d12x/real.rs: adds unit testqueue_tests::newer_list_remap_covers_shifted_shading_rate_slotsasserting alignment withconsole_remap(Kind::CommandList).Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), debug (tests) and release (smoke).cargo build --workspace && cargo build --release -p xclsucceeded.cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored (xcllib: 699 passed, 0 failed, 21 ignored; 2 runtimeSKIPPEDwave64 tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_maskandgpu::recomp::tests::gpu_wave32_program_in_wave64_hardware, reason:no wave64; integration targets:bcpack_parity1,console_dlls_e2e13,console_shaders3 passed / 4 ignored,disasm_e2e1,e2e3,gpu_compute_e2e2,gpu_pso_e2e7,heap_probe0 passed / 4 ignored,low_va1,pls_quota1,predication_e2e1,rpf_e2e2,sparse_reinit1,texture_states1,xg_oracle6 passed / 12 ignored).ID3D12GraphicsCommandList10::#126 (not on PC)incalled_stubsdropped from 713 calls onmainto 0 calls with this patch.XCL_D3D12_DEBUG=115 s smoke run (exit: 0x0, 258 frames shown, 0 device removals, 0 crashes, zero D3D12 debug layer errors related toRSSetShadingRate).Regression run
Not tested
RSSetShadingRateImage(#127-> PC#78) was not called during the 45 s retail run; it matchesconsole_remapinqueue_testsand is unverified live.2wave64 tests skipped on RTX 5070 Ti), Wine, and other newer-layout retail titles.AI use
#126vtable slot, wrote the 2-entryNEWER_LIST_REMAPchange and unit test, and helped format the description. All builds, tests, and live GPU runs were executed locally on the hardware listed above.@celian-hamon on GitHub · 2026-11-24 13:37 UTC · original
lgtm
@DavidM1911 on GitHub · 2026-11-24 13:47 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Note: the full
d3d12xlib filter currently aborts with 0xc0000005 on unmodifiedmaintoo (pre-existing, unrelated to this PR); the PR's own tests were run by name and pass.@Chrysana on GitHub · 2026-11-24 15:23 UTC · original
AMD run of
f5675c7, plus a point about what the retail title passes through slot #126.Setup: AMD Radeon RX 9070 XT 16 GB (RDNA4), driver 32.0.32015.2008, Ryzen 7 9800X3D, Windows 11 26200.9974, rustc 1.100.0 MSVC, release. Retail title 1.0.2.1, the same saved state for every run,
XCL_NETWORK=0 XCL_PRESS_A_AT=20,25,30. This PR's head sits directly onmain47efa2e.Tested
cargo test -p xcl --lib newer_list_remap: 1 passed (newer_list_remap_covers_shifted_shading_rate_slots).scripts/smoke.ps1 -Seconds 60, alternating: PR 1165,main1162, PR 1160 frames. Every run:60 60 60, 0 crashes, 0 device removals. Peak commit 17255 / 17258 / 19479 MB; the last one is an outlier I didn't chase. No regression on this card in what these runs reach.What the title passes through #126. Local diagnostic, not part of this PR: a shim on the PC
RSSetShadingRatethis PR forwards to, logging each distinct argument set.+0x23cf683. Every call wasbaseRate 0with 8 zero bytes behind the combiner pointer, so1X1withPASSTHROUGH/PASSTHROUGH. That's why the forward is harmless so far.+0x32638(call [rax+0x3f0]), the one AallynReed decoded in #1049. I read it in my copy and agree with their reading:state & 0xFFas the second argument;(state >> 8) & 0xFFand(state >> 16) & 0xFF(the shift and mask constants are8, 16and0xFF, 0xFFin.rdata).0xFF, would be invalidD3D12_SHADING_RATE/D3D12_SHADING_RATE_COMBINERvalues. Our runs never got past state 0, so I haven't seen that happen.OMSetStencilRefon a branch: https://github.com/AallynReed/xcl/tree/glyph-cache-gpu-writesNot tested
+0x23cf683first (#534).AI use
@shzyjbr06-dev on GitHub · 2026-11-24 15:43 UTC · original
Thank you for running the RDNA4 test and tracing
+0x32638! That makes total sense — I derived(126, 77)/(127, 78)by shiftingconsole_remap's older#124/#125entries by+2, and because the title only passed zeroed state in the menus, forwarding toRSSetShadingRatehappened to act as a harmless no-op.Since
#126is actually stencil ref + masks and AallynReed already has it wired toOMSetStencilRefon their branch for #1049, I'll close this PR to avoid misleading or duplicate work. Thanks again for the thorough check!@DavidM1911 on GitHub · 2026-11-26 04:05 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Pull request closed