mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:22:51 +01:00
[PR #946] spirv_metal_set0: synthesize uint, retype helper calls, expand decoration groups, and capture spirv-as stderr (SHADER-METAL-SET0-FIX) #984
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#984
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/946
Author: @hamdog0203
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/shader-metal-set0📝 Commits (1)
9c09a67spirv_metal_set0: synthesize uint, retype helper calls, expand decoration groups, and capture spirv-as stderr (SHADER-METAL-SET0-FIX)📊 Changes
2 files changed (+447 additions, -24 deletions)
View changed files
📝
tests/test_spirv_metal_set0.py(+281 -0)📝
tools/spirv_metal_set0.py(+166 -24)📄 Description
Summary
Fixes four SPIR-V / CLI edge cases in
tools/spirv_metal_set0.py:OpTypeInt 32 0) before the first resized pointer type when a module with resized set-0 descriptor arrays does not already declare one (instead of exiting withSystemExit).OpCopyObjectandOpFunctionCallintoOpFunctionParameterand clonedOpTypeFunctiondeclarations (without mutating function types shared with unresized foreign-set helpers), and fail closed on conflicting call sites orOpPhi/OpSelectpointer merges.OpDecorationGroup/OpGroupDecoratefor bothDescriptorSet 0andBindingdecorations, splitting sharedBindinggroups when they mix set-0 and non-set-0 targets.spirv-asstderr and pass explicitencoding="utf-8", errors="replace"forspirv-dis/spirv-assocli()surfaces assembler errors and preserves UTF-8OpNames on Windows code pages.Verification
pytest tests/test_spirv_metal_set0.py -v(with Khronos SPIRV-Toolsspirv-as,spirv-dis,spirv-val1.4.363.1): 15/15 passed, 0 skipped.main(a289278): 6/7 new tests failed onmain.unittest tests/test_text_write_line_endings.py: 3/3 passed.scripts/check_no_game_data.py: exit 0; LF-only, no BOM.Claimed in the coordination issue as: SHADER-METAL-SET0-FIX (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136062894)
AI-assisted: yes
No game files
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.