mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1729] [CLOSED] rdna2spirv: a v_interp_p2_f16 destination op_sel bit is ignored #1742
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#1742
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/1729
Author: @Undefined3301
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:vinterp-p2-f16-op-sel📝 Commits (1)
4be07cbrdna2spirv: a v_interp_p2_f16 destination op_sel bit is ignored📊 Changes
3 files changed (+25 additions, -1 deletions)
View changed files
📝
docs/design.md(+1 -0)📝
tests/semantic/test_printed_encoding.py(+17 -0)📝
tools/rdna2spirv.py(+7 -1)📄 Description
What and why
same_encodingrefused av_interp_p2_f16whose destinationop_selbit (word 0 bit 14) is set in the blob, with "the blob holds ..., LLVM printed ...". The game's compiler stores the bit; llvm-mc re-encodes its 0 default. The op keeps the high half ofvdst(measured on gfx1036 withtools/hw_oracle: a preset0xdeadhigh half survived every case), so the bit changes nothing; thehighbit in byte 5 selects the attribute half and the translator reads it. The rule accepts that one bit and nothing else.On a 1.0.2.1 copy this translated 194 of the 1,923 pipeline-library graphics programs missing at
c7e82e26e(spirv/fspx_gfx16,914 -> 17,108). The rest still stop at a fall-through into undecodable words or have no container.Tests
python -m unittest discover -s tests/semantic -p test_printed_encoding.py-> 9 tests, OK.python -I scripts/run_semantic_tests.py tests/semantic-> 487 files, 6,280 tests, 0 files failed (onc7e82e26e+ this change).v_interp_p1_f16still refuses it. The contract row is indocs/design.md("v_interp_p2_f16destination op_sel").Claimed in the coordination issue as
SHADER-VINTERP-P2-F16-OP-SEL: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158945516AI-assisted (Claude Code).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.