Recompiler: preserve the FSPX compute user SGPR count #219
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!219
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/219/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?
@Kalmarv on GitHub · 2026-11-23 21:14 UTC · original
Kalmarv:fix/fspx-rsrc2-count→main· +34 −11 · 3 files · 1 commits · merged 2026-11-23 21:24 UTCFollows #146.
XCL already reads
COMPUTE_PGM_RSRC2when translating anACCC/FSPXcompute shader. Pipeline creation previously looked only in FSSM for the user SGPR count, so binding and replay could fall back to the root-layout heuristic even when FSPX supplied the count. For a shader with four user SGPRs, all four are reserved and its root arguments belong in the argument table.Read the FSPX count during pipeline metadata lookup and share register decoding with shader translation. The regression test builds two synthetic FSPX containers, sets unrelated bits around the count field, and checks counts of four and eight.
Tested
Windows 11 Pro 26200, Ryzen 9 9950X, x64 MSVC Rust 1.99.0. All checks were CPU-only.
6da33fa7ad8c956e2ef72ed9769e3c96f7ac986awith only the new test applied.cargo test -j2 -p xcl --lib fspx_compute_user_sgprs_from_rsrc2failed 1/1 as expected. Both containers parsed and returned the encoded register words, but the pipeline lookup returned[None, None].033a6d1fdf5ecb62fa45a6e865601c20ca53012d, directly on that base. The same test passed 1/1 with[Some(4), Some(8)]. The library test binary also passed all fourhle::d3d12x::console_list::tests::argument-layout tests and all eightgpu::xbox::tests::container tests. Total 13 passed, 0 failed.Not tested
AI use: Codex, GPT-6.2 Astra.
@ivall on GitHub · 2026-11-23 21:24 UTC · original
Merged (main
d4f17ca). Checked on an RX 9070 (RDNA4) with 11 PRs merged together on mainaf20b4b:cargo build --workspace && cargo test --workspace -- --test-threads=4- 605 unit tests passed, 0 failed (20 ignored), the integration and e2e tests passed; and the retail game still reaches its first menu at 30 fps (720 draws per 2 s).