Separate shader cache entries for native RT closest-hit modes #2
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2"
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 maren-halv/VIctory-DXR. Originally posted by yualk on 2026-11-28T13:59:24Z.
Problem
VICTORY_NATIVE_RT_TWO_PASSchanges closest-hit RayQuery lowering but was not part of the runtime shader translation key. Runs that share a cache can therefore pick up the other mode's translation. The existing state-machine and front/back keys cover different switches.Change
Key the effective closest-hit bit only in native RT mode. Unset and explicit
1share an entry,0has its own, and raster mode does not split on this flag. No lowering, shader format, or cache migration changes. The build fingerprint includes this file, so existing cache entries rebuild once under the new translator fingerprint.Verification
On Windows MSVC (Rust 1.98.1),
cargo test --profile diag --locked --offline -p victory-gpu --lib shader_cache::tests:: -- --test-threads=1passed 6 tests. The regression uses one actual disk cache in six fresh processes and checks hit/miss behavior and returned payloads. No title, device, or performance claims.AI-assisted.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.