native shader cache ignores VICTORY_DEBUG_* and VICTORY_NO_LOCKSTEP: debug switches do nothing on a warm cache #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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by maaalrey on 2026-11-27T08:44:31Z.
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.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by maaalrey on 2026-11-27T08:44:41Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T08:44:53Z.
Claimed by @maaalrey. Open a draft pull request with
Refs #284in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T11:46:03Z.
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.