GPU: key cached shaders by local wave mode #199
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!199
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/199/head"
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?
@avt0m4t48 on GitHub · 2026-11-24 22:31 UTC · original
avt0m4t48:fix/shader-cache-wave-local→main· +1 −0 · 1 files · 1 commits · closed without mergingRefs #62.
VICTORY_WAVE_LOCALaffects whether a local-wave fallback can translate. Include it in the runtime shader-cache build fingerprint so a translation from an earlier mode cannot bypass the current mode.Using the production cache module and a source-built 64-thread reduction, the original warm cache returned the default approximate shader with
VICTORY_WAVE_LOCAL=0, although that setting refused the same shader in a cold cache. With this patch,0andidiomboth take their expected refusal path against the warm cache, and repeating the default still hits. The separateVICTORY_WAVE_DEEP_SKIPScontrol already misses and chooses different DXIL. Both generated forms passed Linuxdxv. Two cache tests and 170 shader tests passed, with two shader tests ignored.This verifies the cache control on synthetic shaders. The tiled-shadow output reported in #62 remains open. AI-assisted using Codex.
@avt0m4t48 on GitHub · 2026-11-25 14:06 UTC · original
Closing as covered by main's shader fingerprint from 8dd30ab. The shader crate now discovers the switches it reads, and the GPU shader cache hashes that fingerprint.
I reran the original synthetic cache reproducer with main's production shader and cache modules at
0b0074e. After the default local-wave mode populated the cache,VICTORY_WAVE_LOCAL=0andidiomboth refused the same reduction, as each did on a cold cache. Repeating the default still hit. The independent deep-skip control still missed and emitted different DXIL when toggled. These are cross-process cache results using synthetic shaders.AI-assisted using Codex.
Pull request closed