mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #867] [MERGED] OLD-7434: spirv_interface: enforce MAX_TYPE_DEPTH across shape_cache and reject matrix nonzero Component #905
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#905
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/867
Author: @narekshaghoyandev
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:ubiq-spirv-interface-depth-and-matrix-component📝 Commits (1)
3ccd1acspirv_interface: enforce MAX_TYPE_DEPTH across shape_cache and reject matrix nonzero Component📊 Changes
2 files changed (+59 additions, -0 deletions)
View changed files
📝
tests/test_spirv_interface.py(+49 -0)📝
tools/spirv_interface.py(+10 -0)📄 Description
Reopening my original upstream PR #7434 (previously double-approved by
@leoleahyand@devnull34, verified on Linux + Windows 11) cleanly rebased ontomain:MAX_TYPE_DEPTHacrossshape_cache(_describe_type): Previously, caching a type's shape without tracking its subtree depth allowed a cached deep type to be wrapped in another outer type and bypassMAX_TYPE_DEPTH. Now tracks/checks subtree depth on cache hits soMAX_TYPE_DEPTHis enforced consistently.Componentdecoration (VUID-StandaloneSpirv-Component-04920): RejectsOpTypeMatrixinterface variables/members with nonzeroComponentinstead of silently accepting them.Verification
python3 -I tests/test_spirv_interface.py -v: 43/43 pass (2/2 fail againstmain).python3 -I tests/test_shader_link_check.py -v: 50/50 pass.python3 -I scripts/check_no_game_data.py tools/spirv_interface.py tests/test_spirv_interface.py: clean.python3 -m compileall -q tools/spirv_interface.py tests/test_spirv_interface.py: clean.Claimed in the coordination issue as: OLD-7434 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135007136)
AI-assisted: yes (Gemini)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.