mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #858] rdna2spirv: support buffer_load_format_d16_hi_x and buffer_store_format_d16_hi_x (OLD-9907) #897
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#897
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/858
Author: @TanmaySatyam
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:feat/old-9907-buffer-format-d16📝 Commits (1)
3ad34ddrdna2spirv: buffer_load_format_d16_hi_x and buffer_store_format_d16_hi_x📊 Changes
3 files changed (+120 additions, -7 deletions)
View changed files
📝
docs/design.md(+1 -0)➕
tests/semantic/test_buffer_format_d16_hi.py(+100 -0)📝
tools/rdna2spirv.py(+19 -7)📄 Description
Claimed in the coordination issue as: OLD-9907
Summary
Carries forward
old-pr/9907(carried-over draft #172) onto currentmain(d0da7dade), preserving the original author's (Luiz Neves) commit:rdna2spirv: buffer_load_format_d16_hi_x and buffer_store_format_d16_hi_xSupports
buffer_load_format_d16_hi_x(writes decoded 16-bit result into bits 31:16 ofvdata, preserving bits 15:0, and marksvdataas read inread_before_write_vgprs) andbuffer_store_format_d16_hi_x(reads component from bits 31:16 ofvdata), plus thedocs/design.mdrow andtests/semantic/test_buffer_format_d16_hi.py.Rebase adjustments
self.tou(...)->self.int_bits(...)inGen.buffer_storeto match currentmain.op == "buffer_load_format_d16_hi_x"alongsidemain'sbuffer_load_*d16 condition inread_before_write_vgprs.docs/design.mdtable insertion below currentmain'sTyped buffer formatsrow.Testing & Verification
python -I scripts/check_no_game_data.pyclean on all touched files).spirv-as/spirv-val(--target-env vulkan1.3).python -I tests/semantic/test_buffer_format_d16_hi.py -v: 3/3 OK across all 77 formats inGen.FORMATS(load high-half preservation, store high-half selection across 5 values per format, andread_before_write_vgprs)spirv-as --target-env vulkan1.3+spirv-val --target-env vulkan1.3on translated compute shader exercising bothbuffer_load_format_d16_hi_xandbuffer_store_format_d16_hi_x: PASSpython -m unittest discover -s tests/semantic -p test_buffer_format_narrow_int.py: 3/3 OKpython -I tests/test_docs_links.py: 16/16 OKpython -I tests/test_text_write_line_endings.py: 3/3 OKpython -m compileall -q make_game.py tools tests/semantic/test_buffer_format_d16_hi.py: OK🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.