[PR #1295] OLD-2528: mesh_compute_vs: read output address from %pc_tail when pc_tail_address_dwords is set #1325

Open
opened 2026-11-26 20:20:52 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1295
Author: @wetw0rks-c0ding
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: mesh-compute-vs-pc-tail


📝 Commits (1)

  • 5684a06 mesh_compute_vs: read output address from %pc_tail when pc_tail_address_dwords is set

📊 Changes

3 files changed (+113 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 (+48 -11)

📄 Description

Claimed in the coordination issue as: OLD-2528

What and why

When index.json's mesh_compute layout carries pc_tail_address_dwords, tools/mesh_compute_vs.py still emitted a 152-byte PushConstant block that does not fit 128-byte push-constant devices. It now reads the output-buffer address from the set-1 binding-0 Uniform block %pc_tail and omits PushConstant entirely; output is unchanged when that layout field is absent.

Tested

  • python3 -m pytest tests/test_mesh_compute_vs.py tests/test_mesh_compute.py -q -> 44 passed, 13 subtests
  • python -I scripts/check_no_game_data.py tools/mesh_compute_vs.py tests/test_mesh_compute_vs.py tests/test_mesh_compute.py -> clean
  • Environment: Linux (CachyOS), CPU-only tests, no GPU required

AI-assisted: Yes. This work was done with OpenCode agents.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1295 **Author:** [@wetw0rks-c0ding](https://github.com/wetw0rks-c0ding) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `mesh-compute-vs-pc-tail` --- ### 📝 Commits (1) - [`5684a06`](https://github.com/ubiquitarianism/leonida/commit/5684a0606c26b567d47645fcf30b23087ccf13cc) mesh_compute_vs: read output address from %pc_tail when pc_tail_address_dwords is set ### 📊 Changes **3 files changed** (+113 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_mesh_compute.py` (+18 -2) 📝 `tests/test_mesh_compute_vs.py` (+47 -0) 📝 `tools/mesh_compute_vs.py` (+48 -11) </details> ### 📄 Description Claimed in the coordination issue as: OLD-2528 ### What and why When `index.json`'s `mesh_compute` layout carries `pc_tail_address_dwords`, `tools/mesh_compute_vs.py` still emitted a 152-byte `PushConstant` block that does not fit 128-byte push-constant devices. It now reads the output-buffer address from the set-1 binding-0 `Uniform` block `%pc_tail` and omits `PushConstant` entirely; output is unchanged when that layout field is absent. ### Tested - `python3 -m pytest tests/test_mesh_compute_vs.py tests/test_mesh_compute.py -q` -> 44 passed, 13 subtests - `python -I scripts/check_no_game_data.py tools/mesh_compute_vs.py tests/test_mesh_compute_vs.py tests/test_mesh_compute.py` -> clean - Environment: Linux (CachyOS), CPU-only tests, no GPU required AI-assisted: Yes. This work was done with OpenCode agents. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1325
No description provided.