mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #189] [CLOSED] rdna2spirv: mesh shader compressed exports unpack their fp16 pairs instead of failing translation #242
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#242
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/189
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9921📝 Commits (2)
d3a4d17fix: mesh shader pos1 misc export writes Layer and ViewportIndex per primitive (rdna2spirv)d165a3dfix: mesh shader compressed exports (exp pos1/param ... compr) unpack their f16 pairs instead of raising Unsupported (rdna2spirv)📊 Changes
2 files changed (+190 additions, -61 deletions)
View changed files
📝
tests/test_translate.py(+100 -0)📝
tools/rdna2spirv.py(+90 -61)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):What
A mesh shader's compressed export (
exp pos1 ... comprfor clip/cull distances,exp param N ... compr) now unpacks its two fp16 pairs (UnpackHalf2x16 on registers 0 and 2 of the operand list) instead of raisingUnsupported("mesh compressed export"), which dropped the whole shader. Uses the existingexport_compshelper that the pixel-shader path already uses.Why
A mesh shader containing one compressed export failed to translate, so its pipeline (PSO) was never built and the draw did not render.
Stacked on
#9893This branch contains the
#9893commit (mesh pos1 Layer/ViewportIndex) because both changeGen.ms_exportand conflict; the conflict was resolved by keeping both (misc pos1 check first, then the compressed path). Only the top commit is new here. Rebase after#9893merges.Tested
python3 -m pytest tests/test_translate.py: 670 passed (73 s), including 4 new tests: pos1 compressed clip unpack, an off register writes nothing, compressed param unpack, uncompressed exports do not unpack halves.tools/rdna2spirv.pyfrom the#9893base, 3 of the 4 new tests fail (the uncompressed guard passes on both).Rebased cleanly on current main; conflicts only with
#9893, resolved as above.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.