mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #765] OLD-2528: mesh_compute_vs: read output address from %pc_tail when pc_tail_address_dwords is set #803
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#803
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/765
Author: @whoalin1
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:mesh-compute-vs-pc-tail📝 Commits (2)
476f014mesh_compute_vs: read output address from %pc_tail when pc_tail_address_dwords is set4bbedddmesh_compute_vs: reject duplicate or out-of-range pc_tail_address_dwords indices📊 Changes
3 files changed (+118 additions, -13 deletions)
View changed files
📝
tests/test_mesh_compute.py(+18 -2)📝
tests/test_mesh_compute_vs.py(+47 -0)📝
tools/mesh_compute_vs.py(+53 -11)📄 Description
Restores my open PR from the original repository (OLD-2528), rebased onto current
main(2d73c242f).Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133003627
Summary
index.json'smesh_computelayout carriespc_tail_address_dwords(as emitted byrdna2spirv.py --mesh-compute --pc-tail-ubo),tools/mesh_compute_vs.pyreads the output-buffer address from the set-1 binding-0Uniformblock%pc_tail(%PcTail) instead of a 152-bytePushConstantblock, omittingPushConstantcompletely so the vertex shader fits 128-byte push-constant devices.pc_tail_address_dwords, the emitted SPIR-V assembly is byte-identical to before.tests/test_mesh_compute_vs.pyandtests/test_mesh_compute.py.Verification (rebased on
2d73c242f)py -3.14 -m compileall -q tools/mesh_compute_vs.py tests/test_mesh_compute.py tests/test_mesh_compute_vs.py— cleanLLVM_MC="wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc" py -3.14 -m pytest tests/test_mesh_compute_vs.py tests/test_mesh_compute.py -q -p no:cacheprovider— 44 passed, 13 subtests passedpy -3.14 -I tests/test_text_write_line_endings.py— 3 passedAI-assisted (Gemini 4 Neon).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.