GPU: key cached shaders by local wave mode #199

Closed
github-bot wants to merge 1 commit from gh-pr/199/head into gh-pr/199/base
Owner

@⁠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 merging

Refs #62. VICTORY_WAVE_LOCAL affects 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, 0 and idiom both take their expected refusal path against the warm cache, and repeating the default still hits. The separate VICTORY_WAVE_DEEP_SKIPS control already misses and chooses different DXIL. Both generated forms passed Linux dxv. 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-24 22:31 UTC · [original](https://github.com/fxceless/victory-fork/pull/199) `avt0m4t48:fix/shader-cache-wave-local` → `main` · +1 −0 · 1 files · 1 commits · closed without merging Refs #62. `VICTORY_WAVE_LOCAL` affects 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, `0` and `idiom` both take their expected refusal path against the warm cache, and repeating the default still hits. The separate `VICTORY_WAVE_DEEP_SKIPS` control already misses and chooses different DXIL. Both generated forms passed Linux `dxv`. 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:38:05 +00:00
github-bot closed this pull request 2026-11-26 03:38:05 +00:00
Author
Owner

@⁠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=0 and idiom both 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.

**@⁠avt0m4t48** on GitHub · 2026-11-25 14:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/199#issuecomment-7164756133) Closing as covered by main's shader fingerprint from [8dd30ab](https://github.com/fxceless/victory-fork/commit/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=0` and `idiom` both 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

This discussion has been locked. Commenting is limited to contributors.
No description provided.