Pack each scatter offset and word in one upload store #3039
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!3039
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3039"
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?
@Brazzo978 on GitHub · 2026-11-29 19:42 UTC · original
Brazzo978:perf/pack-scatter-words→main· +42 −14 · 1 files · 1 commits · openWhat it changes
Write each scatter upload's offset and value with a single 64-bit store. The low dword still holds the byte offset, the high dword still holds the value, and the shader continues reading the pair with
Load2. The short-run predicate and upload buffer size are unchanged.How it was tested
I tested 20,000 synthetic mixed ranges producing 134,655 scatter words on a Ryzen 7 5800X3D running Windows 10.
The focused test checks pair layout and order, unaligned addresses, the 256-byte cutoff, skipped ranges and sentinels outside the output. The benchmark measures the CPU packing step. Gameplay frame time for this patch has not been measured.
The focused
victory-gpucrate test passed on Windows MSVC.Checked for overlap
send::take; this patch targets the pair stores.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.