mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #310] [MERGED] BUILD-SPIRV-DEBUGINFO: Support named SPIR-V shader debug instructions #362
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#362
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/310
Author: @ettehn
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:spirv-nonsemantic-debuginfo📝 Commits (1)
f8a8829Support named SPIR-V shader debug instructions📊 Changes
3 files changed (+95 additions, -2 deletions)
View changed files
📝
tests/test_spirv_asm.py(+43 -0)📝
tools/spirv_asm.py(+4 -2)📝
tools/spirv_asm_tables.py(+48 -0)📄 Description
Claimed in the coordination issue as: BUILD-SPIRV-DEBUGINFO
Rebased on main after #78 merged. On Windows, the updated head passed 47 SPIR-V assembler tests, 3 line-ending checks, all 6,075 semantic tests, and the no-game-data check.
What and why
Carries forward old upstream PR #4744. Register all 44 names from Khronos
NonSemantic.Shader.DebugInfo.100and use the imported instruction set for bothOpExtInstandOpExtInstWithForwardRefsKHR. Without this, the Python assembler tries to parse names such asDebugSourceas integers.Tested
Windows 11 25H2 (build 26200.9974), Ryzen 9 8945HX, Python 3.13.7, Khronos SPIRV-Tools 2026.4. These checks run on the CPU and use no GPU driver.
The new synthetic regression failed on
mainwithinvalid integer literal 'DebugSource'and passed after the fix. It compares named instructions with numeric opcodes, validates the module withspirv-val --target-env vulkan1.2, and checks binary parity withspirv-asexcept for the generator word.python -IB -m unittest discover -s tests -p 'test_spirv_asm*.py'— 42 passed. The same command on the local integration with #78 passed 47 tests.python -IB tests/test_text_write_line_endings.py— 3 passed.python -IB scripts/run_semantic_tests.py tests/semantic -j 8— 6,075 tests across 463 files, zero failing files. The same suite on unpatchedmainalso had zero failing files.python -IB scripts/check_no_game_data.py— passed.AI-assisted: Yes. OpenAI Codex helped port the patch, run the Windows checks and prepare this PR.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.