mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:50:53 +01:00
[PR #2194] [CLOSED] rdna2spirv: do not cache a missing stage index #2197
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#2197
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/2194
Author: @whoalin1
Created: 11/26/2026
Status: ❌ Closed
Base:
main← Head:shader-stage-cache-missing-index📝 Commits (2)
c3ec925rdna2spirv: cache shader stages per carve rootc5c367ardna2spirv: do not cache a missing stage index📊 Changes
2 files changed (+76 additions, -4 deletions)
View changed files
➕
tests/test_rdna2spirv_stage_cache.py(+67 -0)📝
tools/rdna2spirv.py(+9 -4)📄 Description
Depends on: #2154
Claimed in the coordination issue as
SHADER-STAGE-CACHE-MISSING-INDEX(comment 7182872123).What
qhukz13's #2154 review noted a remaining edge case: even with the stage cache keyed by carve root, a missing
index.jsonis cached as that root's empty table for the rest of the process. If the index is created later,stage_of()keeps using the fallback stage until_STAGESis reset.This follow-up caches only successful index reads. A missing file is probed again on the next lookup; a root whose index did load is still cached exactly as #2154 intends.
Test
Adds a synthetic missing-then-created regression case to
tests/test_rdna2spirv_stage_cache.py.python -I tests/test_rdna2spirv_stage_cache.py— 3 tests OKpython -I tests/test_bvh_shaders_stage.py— 13 tests OKpython -I tests/test_exe_shaders_stage.py— 11 tests OKpython -I tests/test_shader_library.py— 22 run, 21 passed + 1 skippedpython -m compileall -q tools/rdna2spirv.py tests/test_rdna2spirv_stage_cache.py— PASSNo game data.
AI-assisted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.