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

Manually merged
github merged 1 commit from github-bot/gh-1096 into main 2026-11-29 08:21:58 +00:00 AGit
Owner

@⁠erax4193 on GitHub · 2026-11-28 13:14 UTC · original
erax4193:fix/shader-classify-single-decode → main · +52 −39 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC

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

**@⁠erax4193** on GitHub · 2026-11-28 13:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1096) `erax4193:fix/shader-classify-single-decode` → `main` · +52 −39 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC ## 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)
Both `stores` and `stores_by_address` previously decoded the native
shader program independently, paying the full decode cost twice per
program. The new `classify_stores` function decodes once and checks
both predicates in one pass, short-circuiting as soon as both are
found.

Closes #1055

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:33:07 +00:00
github manually merged commit 2a255a2cbb into main 2026-11-29 08:21:58 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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