Classify shader write hazards in one instruction decode #529
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!529
Loading…
Reference in a new issue
No description provided.
Delete branch "holoslicer/Darner:perf/classify-shader-writes-once"
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?
Tested offline. Gameplay FPS and end-to-end pipeline creation time are unmeasured.
Contributor role (optional)
Please grant the Darner Contributor role on merge. My Fluxer ID is
1577921940104949761.What it changes
A pipeline could decode the same GFX10 instructions twice while classifying shader writes. Read-only and image-only programs were scanned again for image stores or atomics after checking for buffer and raw-address writes. This change collects all three answers in one pass per stage. Undecodable code stays conservative, scratch stores stay private, and raw-address writes can end the scan early.
How it was tested
b5be4d4againstc8258f9. Windows x64, Core i7-12700K, RTX 3090, NVIDIA 617.42.cargo test --locked -p darner-gpu --lib pipeline::tests:: -- --test-threads=1. Seven tests passed and two opt-in tests were ignored. The classification fixture covers read-only code, image loads/stores/atomics, buffer/global/flat/scratch writes, indirect jumps, empty or malformed inputs, and stages in both orders.pipelines/known-shaders.binand run both revisions' write classification on each batch of 192 programs. Time the classifier only. Keep parsing, file I/O, result comparisons and decode counters outside the timed region. Alternate which implementation goes first across batches and repetitions. Both implementations use the same decoder. The final run used release-mode code, seven passes, with Darner, the preload and competing builds stopped.--all-targets --locked -- -D warnings, including the separate--all-featuresrun.cargo xtask policypassed.cargo test --locked --offline --workspace --no-fail-fast -- --test-threads=1 --skip oracle64::legacy_mul_forms_are_exactpassed, including all 1,823 enabled GPU tests. Each of those three tests also passed individually on main and on this commit. The unmodified exhaustive all-f32 multiply oracle was excluded from the passing run. The complete unfiltered workspace gate therefore remains outstanding.Checklist
main.docs/asset-policy.md.Checked for overlap
pipeline.rsfor zero-group dispatch handling. I found no PR covering this classification change.[pr-performance][shaders] Classify shader write hazards in one instruction decodeto Classify shader write hazards in one instruction decodeTest needed — commit
b5be4d46; what to check: A pipeline could decode the same GFX10 instructions twice while classifying shader writes. Read-only and image-only programs were scanned again for image stores or atomics after checking for buffer and raw-address writes. This change collects all three answers in one pass per stage. Undecodable code stays conservative, scratch stores stay private, and raw-address writes can end the scan early.Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.