shader: name gfx10 register codes in gfx1013_graphics_wqm.inl #3903
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3903
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3901"
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?
@Leyukaka on GitHub · 2026-12-02 23:38 UTC · original
Leyukaka:quality-item2-s2-wqm→main· +53 −37 · 1 files · 1 commits · merged 2026-12-02 23:51 UTCProblem
src/gfx1013_graphics_wqm.inlstill writes scalar registers as bare numbers: 126/127 for EXEC, 106/107 for VCC, 105 for the last general SGPR, 256 for the first VGPR operand and 128 for the SCC slot of the scalar state. #3832 addedsrc/gfx1013_registers.hto keep the register code, operand and translator slot meanings apart, and convertedgfx1013_compute_native.cpp.Change
This is the second slice. No behaviour change.
8b70c6773uses the constants fromgfx1013_registers.hinsrc/gfx1013_graphics_wqm.inl(+53/-37, one file). The substitution is textual and the values and types are unchanged.write(128)becomesreg::scc_slot: it is the SCC slot of the scalar state, not operand 128 (the constant 0).104, the bound for an aligned 64-bit register pair. The header has no constant for it, and #3832 left it as is too.512 +, the key offset of the saved-coverage tags ingraphics_registers. It is a translator map key, not a register code or an operand, andgfx1013_direct_graphics.inluses the same offset.0x1890, an export target mask, along with branch opcodes and IR text. None of them are register codes.gfx1013_compute_native.cpp, which already includes the header, and it is already a native shader revision input.Validation
Built on Windows with MSVC, head
8b70c6773onmainc42b7ce3f.native_graphics_wqm_ir,native_pixel_alpha_kill_controls,native_pixel_cmpx_discard_warp,native_pixel_compare_mask_ir,native_pixel_saveexec_masks_controls,native_pixel_cmpx_scalar_tail_controls,native_translator_corpus_dxilandnative_translator_corpus_irpass.tests/translator_corpus_hash.py): the TSV built frommainc42b7ce3fand the TSV built from this branch have the same SHA-256, so they are byte-identical. The corpus is a general regression check; the WQM paths are covered by the targeted tests above.Other open PRs
#3849 (draft) also edits
gfx1013_graphics_wqm.inl, but only adds a block at the head of the file, above the lines changed here, so there is no overlap. If this lands first and a rebase is needed, I am glad to help.@R0Y00 on GitHub · 2026-12-02 23:50 UTC · original · approved these changes
Reviewed
8b70c677. I checked all seven referenced register constants againstgfx1013_registers.h. Substituting their original numeric spellings leaves the same WQM source after whitespace normalization, including the original wave64 alignment bound. The trial merge withmain1c4601ffis clean. At this head the Windows, Linux Python and gfx1013 fixture checks are green.