Recompiler: track non-sequential MIMG address VGPRs #2287
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!2287
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2287/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?
@mokkamokacaffe on GitHub · 2026-11-25 12:26 UTC · original
mokkamokacaffe:recompiler/track-mimg-nsa-vgprs→main· +42 −0 · 1 files · 1 commits · closed without mergingFixes #885.
rdna2::vgpr_usestreated an MIMG instruction'sVADDRas one consecutive register range even when NSA extension words encoded independent address VGPRs. That omitted high non-sequential registers frommax_vgprand falsely included adjacent low registers, which can under-bound relative VGPR moves and swaps.What is in it
crates/xcl/src/gpu/rdna2.rs: for NSA MIMG instructions, count the baseVADDRonce and read everyVADDRA… field from the selectedMIMG_NSA1/2/3encoding.NSA=0MIMG instructions.Tested
mimg_nsa_vgpr_uses_follow_encoded_registersfailed for NSA1, reporting[4, 5, 6, 7, 8, 9, 10, 11, 12]instead of[4, 100, 101, 102, 103].cargo test mimg_nsa_vgpr_uses_follow_encoded_registers -- --nocapture: 1 passed, 0 failed, 0 ignored.cargo test image_operands_and_modifiers -- --nocapture: 1 passed, 0 failed, 0 ignored.cargo test vgpr_in_nine_bit_field -- --nocapture: 1 passed, 0 failed, 0 ignored.git diff --check: passed.Regression run
main:
Pending: requires Windows, a D3D12 GPU and a real-title installation.
this PR:
Pending on clean head
e165370: requires Windows, a D3D12 GPU and the same title and duration as the main run.Not tested
max_vgprchanges.scripts/smoke.ps1retail-title runs.AI use
@Lum7nt on GitHub · 2026-11-25 13:01 UTC · original
Windows targeted checks on clean head
e16537082d8e678ee53a1b64f63783529ba48be2(release): Windows 11 build 26300, rustc 1.100.0 MSVC. For each filter below I rancargo test --offline --locked --release -p xcl --lib <filter> -- --nocapture --test-threads=1:mimg_nsa_vgpr_uses_follow_encoded_registers: 1 passed, 0 failed, 0 ignored.image_operands_and_modifiers: 1 passed, 0 failed, 0 ignored.vgpr_in_nine_bit_field: 1 passed, 0 failed, 0 ignored.No SKIPPED messages. These are CPU decoder tests; the machine has an RX 9070 XT (driver 32.0.32029.2010), but these checks do not exercise the GPU. Full workspace, shader-pack survey, retail title and paired smoke runs were not tested here.
AI use: OpenAI Codex (GPT-6; exact variant unavailable) ran the checks and drafted this report.
@upipibi on GitHub · 2026-11-25 13:59 UTC · original
First GPU run, as far as I can see in this thread (NVIDIA). Exact head
e165370, as-is on its base1a0bbe3a: RTX 3070 8 GB, driver 616.56, Windows 11, debug.XCL_DIRECT_DXIL=0XCL_DIRECT_DXIL=1mimg_nsa_vgpr_uses_follow_encoded_registersgpu_suite (--skip gpu_sparse_vram, single-threaded)main1a0bbe3aSo nothing in the
gpu_suite changes on this card with the PR.Not tested: AMD, a title, the whole workspace.
AI-assisted (Claude Code). Synthetic tests only.
@throny on GitHub · 2026-11-25 15:33 UTC · original
Two contributors checked independently and found that #886 #1797 solves the same problem (for #885) in a different way: #1607, group D81. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@DavidM1911 on GitHub · 2026-11-25 17:17 UTC · original
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!
github-bot referenced this pull request2026-11-26 06:18:30 +00:00
Pull request closed