native shader cache ignores VICTORY_DEBUG_* and VICTORY_NO_LOCKSTEP: debug switches do nothing on a warm cache #284
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#284
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?
@maaalrey on GitHub · 2026-11-27 08:44 UTC · original
The native shader cache keys on the translator's sources, the entry encoding, the loop limit and the translation
Options. It doesn't key on the switches the translator reads from the environment while it translates:VICTORY_DEBUG_PS,_PS_RED,_VS_PARAM,_VS_POS,_VS_TRIandVICTORY_NO_LOCKSTEP.VICTORY_DEBUG_PS_RED=1 VICTORY_DEBUG_VS_TRI=1translated no shader and left every target black.Plan: list the switches next to the translator (
TRANSLATION_SWITCHES), hash those that are set into the build key next to the loop limit, and add a test that fails when a newVICTORY_switch read inemitis in no list. I have it ready.@maaalrey on GitHub · 2026-11-27 08:44 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 08:44 UTC · original
Claimed by @maaalrey. Open a draft pull request with
Refs #284in its description within 24 hours, or the claim expires.@LakshanSivakumar on GitHub · 2026-11-27 11:46 UTC · original
Fixed by #285, which is merged into main: the shader cache key now includes the translator's environment switches, so a debug switch can no longer be served a shader built without it. Thank you @maaalrey.