GPU: read DRED constant-view words without VirtualQuery #1344
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1344
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1344/head"
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?
@fuzeofficlal on GitHub · 2026-11-24 17:34 UTC · original
fuzeofficlal:perf/dred-notes-avoid-virtual-query-913→main· +175 −4 · 1 files · 1 commits · closed without mergingFixes #913.
Summary
texture::committed(VirtualQueryregion walk) + raw unaligned read indraw::describe(#[cfg(feature = "diagnostics")]) withfirst_constant_words, reading 16 bytes directly viahost::read_into(ReadProcessMemory) and decoding four little-endianf32values withoutunsafe.Constant({address:#x}, {size}) {words:?}formatting (including-0.0) while skipping null, reserved (MEM_RESERVE), or partially unmapped page boundaries without walking the process's memory regions on every draw/dispatch.Verification
draw::tests::constant_view_notes_read_committed_words_and_skip_unmapped_pagestesting unaligned committedf32words, short buffers, null addresses,MEM_RESERVEpages, and cross-page committed/uncommitted boundaries:VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1): passed (0debug errors)VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1): passed (0debug errors)VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1): passed (0debug errors)cargo clippy --workspace --all-targets --all-featuresandcargo xtask policy: passed.@Marvisak on GitHub · 2026-11-25 00:37 UTC · original
Automated triage for the maintainers. Closing because this change is already in
main, ormainhas since replaced the code it patches.Main's describe() already reads the constant view's words through read_into without VirtualQuery (draw.rs, fixed today for the same per-draw cost).
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed