Skip to content

[Review import] GPU/shader: raw host views for structured buffers (upstream #2885) - #12

Draft
maok625 wants to merge 3 commits into
mainfrom
review/upstream-pr-2885-raw-structured-buffers
Draft

maok625 wants to merge 3 commits into
mainfrom
review/upstream-pr-2885-raw-structured-buffers

Conversation

@maok625

@maok625 maok625 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Imported from Marvisak#2885 for review on this fork.

Upstream source head: 767f2284ad9726d56e8440e5a4f1ab6b0aabecd7 (from jujumoneylol/VIctory). Its original merge base is 842b0cb76f8f5fa9289bd779783c51ec24d75302, one commit behind current main. This import is intentionally preserved as a draft and needs a rebase/conflict review before it is considered merge-ready.

Interaction warning: overlaps Marvisak#2177 and Marvisak#3301 in descriptor/shader lowering. Rebase and reconcile VIEW_STRIDES / raw structured-buffer lowering with the other shader changes before merging.

Draft import only. Inspect all touched code and tests, resolve interactions with sibling review branches, and run Windows/D3D12 tests before merging. No local build or GPU validation has been performed by this import.

BLOCKER — structured-buffer correctness regressions to resolve

The raw host-view approach fixes an NVIDIA structured-buffer stride/read issue in reported RTX 3070/5090 tests, but upstream reviewers reproduced cross-view visibility regressions: writes through one structured view with a non-16-byte-aligned origin were not visible through another overlapping view (reported on RTX 3080/5080 and WARP). A separate reproduced issue shows direct UAV clears on biased raw views overwrite 4–12 bytes preceding the logical view in the shared shadow copy; a follow-up fix/test commit is discussed upstream but is not part of this imported head unless explicitly added. Further review points cover stride-table bounds for dynamic slots and getDimensions bias handling. Before merge, integrate the clear correction and regression fixture, solve shared-copy aliasing for differently aligned views, verify stride/mark-table bounds, and retest RTX plus WARP. Compare this implementation with Marvisak#2178; both overlap shader lowering/cache work, and Marvisak#2177 also overlaps heap-bound handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants