mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:50:53 +01:00
[PR #744] [CLOSED] rdna2spirv: decode scalar, image and buffer tuples that run into vcc from blob (OLD-10062) #782
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#782
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/744
Author: @abnalstlll-byte
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:restore/old-10062-vcc-tuples📝 Commits (1)
a0c9e95fix: rdna2spirv decodes scalar, image and buffer tuples that run into vcc from the blob when llvm-mc rejects them📊 Changes
3 files changed (+190 additions, -3 deletions)
View changed files
📝
docs/shader_library.md(+5 -3)➕
tests/semantic/test_vcc_tuple_fallback.py(+149 -0)📝
tools/rdna2spirv.py(+36 -0)📄 Description
### Summary
Restores and updates work from draft PR #327 (
old-pr/10062/ itemOLD-10062).Original commit by @tedin7 (
063f14dcd9).llvm-mcskips the first word ofs_buffer_load_dwordx8intos[100:107], an image resource ins[100:107]or a buffer resource ins[104:107]and leaves the second word as junk, sotranslate()refused those shaders ("reachable instruction with normalized encoding" or "fall-through into undecodable words") or translated them without the load.restore_vcc_tuplesreads the uncovered words of the code range withrdna2_decodeand keeps only instructions whose operands hold aVCCTuplelist, the form the translator already takes. Other undecodable words remain unchanged and properly rejected.Verification
python -I scripts/check_no_game_data.py tools/rdna2spirv.py tests/semantic/test_vcc_tuple_fallback.py docs/shader_library.md-> Clean (no game data)python -m unittest discover -s tests/semantic -p test_vcc_tuple_fallback.py-> 4/4 PASS in 0.22subi/main(21625bca8).AI-assisted verification and rebase by Antigravity (Autonomous Direct Mode).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.