Fix integer vertex selection in v_interp_mov_f32 #291
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!291
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/291/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?
@NemesisDawn on GitHub · 2026-11-23 15:40 UTC · original
NemesisDawn:vinterp-integer-vertices→main· +68 −2 · 3 files · 1 commits · closed without mergingHonors the vertex selector in v_interp_mov_f32 for flat integer inputs.
Adds a synthetic triangle test that reads a distinct value from each
of the three vertices.
The new test passed on Windows using both an RTX 5080 and WARP.
Validation covers the translated Direct3D 12 shader.
Refs #187.
@QuentinDanblon on GitHub · 2026-11-23 18:07 UTC · original
Heads-up on how this interacts with #253 (VOP3-encoded v_interp, applied locally per the thread there).
ins.opis not normalized between encodings:rdna2.rs:500gives(w >> 16) & 0x3for VINTRP, so v_interp_mov_f32 isop == 2, butrdna2.rs:496gives(w >> 16) & 0x3fffor VOP3, so its VOP3 form isop == 0x202. #253 routes the VOP3 forms throughemit_interp. Once both are in, theins.op == 2test here is false for the VOP3 form, which would keep readingi.iN.xinstead ofGetAttributeAtVertex.Minimal fix:
(ins.enc == Enc::Vinterp && ins.op == 2) || (ins.enc == Enc::Vop3 && ins.op == 0x202). Also, #253 decodes the VOP3 source withsrc9, which only yieldsOpnd::Vgprfor codes >= 256, so[Opnd::Vgpr(selector)]may need to accept the VOP3 operand form too. A VOP3 variant ofinteger_vertex_selectors_read_the_requested_vertexwould cover both. I have not run the merged code; this is from reading both diffs.@omonkeyz on GitHub · 2026-11-25 13:48 UTC · original
Applied on main in
d38321c(cherry-picked onto the current history with your authorship kept; comment lines stripped per CONTRIBUTING). Thank you.Pull request closed