GPU: reuse decoded shader instructions for write classification #2935
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2935
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2935"
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?
@ghptc on GitHub · 2026-11-29 18:54 UTC · original
ghptc:perf/reuse-decoded-shader-write-classification→main· +50 −59 · 1 files · 1 commits · openWhat it changes
Follow-up to #1096. That PR gives buffer and raw-address stores one GFX10 decode. In
pipeline::translate, programs without buffer stores still go through a second decode whenwriteschecks for image stores and atomics. This happens when the host shader is retrieved from cache as well.Reuse the decoded instructions to produce
stores,stores_by_addressandwrites. Preserve the existing rules for scratch stores, indirect control flow, absent native programs, and unknown or undecodable instructions. The PR adds nine generated instruction sequences covering the flag distinctions.Validation
The shader team compared the baseline and candidate using 24 generated read-only compute programs through the project’s parser and DXIL emitter. All three flags and the complete serialized VSH1 payload (DXIL and metadata) matched byte for byte. The classifier control additionally covered image, buffer, global and scratch writes, indirect flow, undecodable input and multiple-program aggregation.
These are medians over 11 paired batches with alternating order and two warm-ups. The controls used generated input and covered CPU preparation. Real cache key lookup, host PSO creation, GPU execution and in-game frame time were outside the measurement. The full Windows crate was outside this validation. This PR contains source and synthesized unit test cases.
Based on
f889bb076fa884fff8d2b6f0b50ac86f72abfd98. Cherry-picked unchanged from6bd9a7f01bc4bb74b0b1b3f6ab22060f3bc26f6cwith original authorship.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.