pipeline: classify stores in a single decode pass (#1055) #1096

Merged
erax4193 merged 1 commit from upstream-pr/1096 into main 2026-11-29 08:16:57 +00:00
erax4193 commented 2026-11-28 13:14:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by erax4193 on 2026-11-28T13:14:38Z.


Summary

  • Replaces the two separate stores() and stores_by_address() functions with a single classify_stores() that decodes the native shader program once and checks both predicates in one pass
  • Short-circuits as soon as both flags are set, matching the original lazy behavior
  • Decode errors (undecodable code) still conservatively return (true, true) for both flags

Motivation

Closes #1055. As measured in that issue, the separate decode passes add 20–53% classification latency per program. On a full shader burst (prologue, world load), this compounds across thousands of shaders — directly contributing to the stutter and slow screen transitions users report.

Testing

Built with cargo build --release --locked -p victory-gpu on Windows 11, RTX 5070, ran through the prologue to verify no behavioral regression.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5540487564 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1096). Originally posted by [erax4193](https://github.com/erax4193) on 2026-11-28T13:14:38Z. --- ## Summary - Replaces the two separate `stores()` and `stores_by_address()` functions with a single `classify_stores()` that decodes the native shader program once and checks both predicates in one pass - Short-circuits as soon as both flags are set, matching the original lazy behavior - Decode errors (undecodable code) still conservatively return `(true, true)` for both flags ## Motivation Closes #1055. As measured in that issue, the separate decode passes add 20–53% classification latency per program. On a full shader burst (prologue, world load), this compounds across thousands of shaders — directly contributing to the stutter and slow screen transitions users report. ## Testing Built with `cargo build --release --locked -p victory-gpu` on Windows 11, RTX 5070, ran through the prologue to verify no behavioral regression. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!1096
No description provided.