keep pair meetings between LDS atomics and subsequent reads #623
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!623
Loading…
Reference in a new issue
No description provided.
Delete branch "RileyW/Darner:pr/paired-lds-order"
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?
Not yet run in-game on this Darner branch (synthetic unit and DXIL validation tests run on this revision; previously verified on RTX 3080 SM86 in a downstream fork).
What it changes
In lds_order, both Kind::Read and Kind::Atomic were marked ordered only when writes was true. In a barrier-free piece where an LDS atomic reduction (such as ds_add_u32, ds_min_u32, or ds_max_u32) precedes a plain ds_read_b32 with no plain ds_write in the piece (either in the same piece or across a predecessor piece), both accesses were marked unordered. Under with_pair_meetings, the two 32-lane host halves of a 64-lane console wave could omit the meeting between the atomic and the read, allowing half 0 to read a partial reduction before half 1 executes its atomic.
This change:
How it was tested
3400e27(based onc8258f9)Checklist
Checked for overlap
[pr-fix][shaders] keep pair meetings between LDS atomics and subsequent readsto keep pair meetings between LDS atomics and subsequent readsTest needed — commit
3400e276; what to check:In lds_order, both Kind::Read and Kind::Atomic were marked ordered only when writes was true. In a barrier-free piece where an LDS atomic reduction (such as ds_add_u32, ds_min_u32, or ds_max_u32) precedes a plain ds_read_b32 with no plain ds_write in the piece (either in the same piece or across a predecessor piece), both accesses were marked unordered. Under with_pair_meetings, the two 32-lane host halves of a 64-lane console wave could omit the meeting between the atomic and the read, allowing half 0 to read a partial reduction before half 1 executes its atomic.
This change:
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.