GPU: key cached shaders by local wave mode #199
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/199"
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 fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-24T22:31:51Z.
Refs #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.
Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T14:06:02Z.
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