mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1743] [CLOSED] rdna2spirv: support op_sel destination high half on v_interp_p2_f16 (SHADER-INTERP-P2-F16-OPSEL) #1758
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1758
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1743
Author: @abnalstlll-byte
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:feat/shader-interp-p2-f16-opsel📝 Commits (1)
6e55c40rdna2spirv: support op_sel destination high half on v_interp_p2_f16 (SHADER-INTERP-P2-F16-OPSEL)📊 Changes
2 files changed (+14 additions, -4 deletions)
View changed files
📝
tests/semantic/test_interp_f16_high.py(+10 -0)📝
tools/rdna2spirv.py(+4 -4)📄 Description
Claimed in Issue #14:
claiming: SHADER-INTERP-P2-F16-OPSEL(https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142482665).Summary
v_interp_p2_f16in VOP3 form supports theop_seldestination bit (bit 14 of dword0 /op_sel:[..., 1]), which selects whether the 16-bit interpolated float is written to the low half (dhi=0, keeping high half) or high half (dhi=1, keeping low half) of the destination VGPR.Previously
tools/rdna2spirv.py:11479hardcodedself.write_lo16, discarding the high half destination selection._, dhi = self.opsel_bits(mods, 3)andself.write_half16(a[0], ..., dhi).dhi=0(default or no modifier), behavior is identical (write_lo16, keeping preset high half).dhi=1,write_half16writes the 16-bit float into bits 31..16 while keeping bits 15..0 ofvdst.Verification
python -m unittest discover -s tests/semantic -p test_interp_f16_high.py: 6/6 tests PASS in 0.095s (including newtest_p2_f16_destination_high_half_opsel).python -m unittest discover -s tests/semantic -p test_interp_f16.py: 1/1 test PASS.python -I scripts/check_no_game_data.py tools/rdna2spirv.py tests/semantic/test_interp_f16_high.py-> 0 violations.main(bcaa13dad).AI-assisted (Gemini 3.8 Flash High).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
ref = {}releases (TEST-REF-MOVE-ONLY) #1771