mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:15:52 +01:00
[PR #1203] [MERGED] rdna2spirv: mesh shader compressed exports unpack f16 pairs instead of failing (OLD-9921) #1237
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#1237
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/1203
Author: @ambroseautomation
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:carry/old-9921-ms-compressed-exports📝 Commits (4)
d6efad1fix: mesh shader compressed exports (exp pos1/param ... compr) unpack their f16 pairs instead of raising Unsupported (rdna2spirv)e39adc9docs: contract row for compressed mesh-shader exports50740a1Merge main into carry/old-9921-ms-compressed-exports275cb01Merge main into carry/old-9921-ms-compressed-exports (after #1197)📊 Changes
3 files changed (+94 additions, -37 deletions)
View changed files
📝
docs/design.md(+1 -1)📝
tests/test_translate.py(+52 -0)📝
tools/rdna2spirv.py(+41 -36)📄 Description
Claimed in the coordination issue as: OLD-9921 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142940137)
Depends on: #1197
What and why
Carries forward
old-pr/9921(draft #189, original commit authortedin7preserved; indexed in #17), rebased cleanly onto currentmain.Fixes mesh shader compressed exports (
exp pos1/param ... compr) intools/rdna2spirv.pyso they unpack their f16 pairs instead of raisingUnsupported("mesh compressed export"):Gen.export_comps(a, ins)fromGen.exportand reuses it inGen.mesh_exportforpos1+,pos0, andparam*exports, unpacking each f16 pair register viaOpExtInst %v2float %glsl UnpackHalf2x16and preservingoffslots asNone.tests/test_translate.py:test_ms_compressed_pos1_clip_export_unpacks_f16_pairs,test_ms_compressed_pos1_clip_export_off_register_writes_nothing,test_ms_compressed_param_export_unpacks_f16_pairs, andtest_ms_uncompressed_exports_do_not_unpack_halves.Tested
tests/test_translate.pyfunctions directly viardna2spirv.translateand verified SPIR-V binary assembly viaspirv_asm.assemble(nollvm-mc/spirv-valinstalled on host): 4/4 PASS.python -I scripts/run_semantic_tests.py tests/semantic: 470 files, 6,168 tests, 0 files failed.python -I scripts/check_no_game_data.py tools/rdna2spirv.py tests/test_translate.py: exit 0 (no game data).GPUs tested: n/a (CPU SPIR-V interpreter semantic suite + in-process
spirv_asmassembly on Windows 11 Pro 64-bit, Python 3.12.10)AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (extends existing compressed export f16 unpacking to mesh stage)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.