rdna2spirv: mesh shader compressed exports unpack f16 pairs instead of failing (OLD-9921) #1203
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1203
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1203/head"
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?
@ambroseautomation on GitHub · 2026-11-24 20:11 UTC · original
ambroseautomation:carry/old-9921-ms-compressed-exports→main· +94 −37 · 3 files · 4 commits · merged 2026-11-25 03:16 UTCClaimed in the coordination issue as: OLD-9921 (#14)
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)@aslan2142 on GitHub · 2026-11-25 03:16 UTC · original
Merged, after #1197 as the description asked. Thanks.
OLD-9921, valid, before this PR; the only claim for the item.docs/design.md;main. The second resolves the one conflict with #1197 inmesh_exportby keeping both: #1197's misc-vector return forpos1first, then the compressed components.tests/test_translate.pyon the merge: 705 pass; the 2 failures (cs_dpp_cmp.asm) are the same onmain.main1cfc29af7+275cb0145: the semantic suite passes (487 files, 6,279 tests, 0 files failed);test_translate (pytest; 2 failing as on main)pass; the 14 docs and writer tests pass;check_no_game_data.pyis clean on the 3 changed files.AI-assisted (Claude Code, Claude Opus 5.5).