Shaders: reject side effects in simulated whole-wave sections #981

Merged
yumaste merged 3 commits from upstream-pr/981 into main 2026-11-29 08:16:58 +00:00
yumaste commented 2026-11-28 10:35:27 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by yumaste on 2026-11-28T10:35:27Z.


Port of Marvisak/VIctory#2874. The whole-wave simulator supplies symbolic values for instructions it skips. Stores, atomics, barriers, exports and loads into LDS cannot be represented as symbolic values alone. Reject such a section at the instruction's offset instead of silently dropping the effect.

Windows validation: cargo test -p victory-shader --locked --lib passed 295 tests (5 ignored). The synthetic tests cover a barrier, buffer store and buffer load into LDS inside a whole-wave section, plus classification of global loads into LDS.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5539236301 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/981). Originally posted by [yumaste](https://github.com/yumaste) on 2026-11-28T10:35:27Z. --- Port of Marvisak/VIctory#2874. The whole-wave simulator supplies symbolic values for instructions it skips. Stores, atomics, barriers, exports and loads into LDS cannot be represented as symbolic values alone. Reject such a section at the instruction's offset instead of silently dropping the effect. Windows validation: `cargo test -p victory-shader --locked --lib` passed 295 tests (5 ignored). The synthetic tests cover a barrier, buffer store and buffer load into LDS inside a whole-wave section, plus classification of global loads into LDS.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!981
No description provided.