GPU: align host copies for raw buffer UAVs #3075
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!3075
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3075"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-26 06:38 UTC · original
andrewpozdnakov7-jpg:fix/771-raw-uav-alignment→main· +75 −2 · 2 files · 1 commits · openFixes #771.
The remaining RAW buffer case could use a 4-byte-aligned offset when mirroring a guest UAV to D3D12. Use
D3D12_RAW_UAV_SRV_BYTE_ALIGNMENTto select the host copy both when creating the RAW descriptor and when refreshing and copying back its data. The descriptor still covers the original range in 32-bit elements.The synthetic guest
ClearUnorderedAccessViewUinttest clears four DWORDs through an odd-offset RAW view and checks all eight words, including the neighboring sentinels. It passed on Windows with app-local WARP 1.0.22 and D3D12 Agility 1.620.2. The fullvictory-gpudiagnostics suite passed 247 tests with one ignored. Strict GPU Clippy with all features and the asset policy passed. The title was not used.Coordination claim
AI-assisted with Codex. Please retain the Git author when cherry-picking or rebasing. If you fold this change into another commit, please add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.@Marvisak on GitHub · 2026-11-26 08:22 UTC · original
Automated triage for the maintainers.
Merge candidate.
descriptor::host::buffer_uavnow asksshadow::for_viewfor a 16-byte-aligned copy (D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT) when the view is RAW, soFirstElement = shadow.offset(start) / 4always lands on a 16-byte boundary (the arena already places exact copies on multiples of 256).view_copyreads the UAV flags from the same descriptor words (dword 8 isFlagsin the host layout) and passes the same alignment, so the refresh and copy-back indraw.rs/bindless.rsfind the sameEXACTentry instead of a 4-aligned one. This is the odd-offset raw case the triage note on #771 asked for. The new testa_raw_buffer_clear_keeps_words_outside_an_odd_offset_viewchecks the neighbouring sentinels. CI: passing.A note, not a blocker:
buffer_srvstill uses a 4-byte element for raw SRVs, and those have the same 16-byte rule on the host. A follow-up could sharebuffer_uav_alignmentwith that path.Generated by Claude Code
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.