GPU: decode each shader once for both store classifications (#1055) #1203
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1203"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by Yuanzer on 2026-11-28T15:30:58Z.
The problem
pipeline::translateclassified each native shader once withstoresand once withstores_by_address. Both predicates callvictory_shader::gfx10::decodeon the same code, so a shader without stores, or one where both classifications were needed, decoded its program twice for these two booleans.Fixes #1055.
The change
true.stores, as before.No cache or persistent state is introduced.
Tests
pipeline::tests::store_classification_keeps_both_kinds: no-store, buffer-store, flat-store, global-store, scratch-store, empty-program, undecodable-code, and multi-program aggregation.cargo test -p victory-gpu --lib --locked: 455 passed, 0 failed, 36 ignored.cargo check -p victory-gpu --all-targets --all-features --locked: passed.I did not run the game or claim an FPS change. The local toolchain's rustfmt and clippy components were unavailable, so CI remains the authoritative lint check.