Repository navigation
Conversation
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Clear descriptors for null constant buffers: null-CBV descriptor clearing — pairs with #1629's null CBV work.
b380544 to
3734f7b
Compare
|
I ran a CBV clear through the host shader path on your current head 3734f7b. Translated table and heap constant views use raw buffer SRVs. Creating a native null CBV in that slot leaves it the wrong descriptor kind for the shader. 1eff62e is one commit directly on your head. It reuses the existing raw null SRV and adds a dispatch that reads the same descriptor slot before and after clearing. On WARP with GPU-based validation, both builds read 0x11223344 before the clear. The original head left the output sentinel 0xdeadbeef after it. The fixed build wrote 0. The full WARP GPU suite passed with 148 tests and 2 ignored. Strict GPU Clippy and asset policy passed. |
|
Automated triage for the maintainers. Merge candidate. At The host-side fix is unchanged from the last review and right. In Generated by Claude Code |
Translated shaders read constant buffers in heap slots as raw buffers, so the null that replaces a cleared CBV slot has to be the raw null buffer view, not an unbound constant-buffer view: on WARP with GPU-based validation the slot then read as the sentinel instead of zeros.
|
The host-side half is fixed in On the test half I tried to build the shader-read fixture and could not get it to produce a nonzero "before" value here: a
The |
|
Yes. I put the shader-read fixture in a2cc866, directly on your The nonzero control uses With WARP GPU-based validation, the same fixture reads Please preserve the test commit's Git author if you cherry-pick it. If you fold the test into another commit, please add: Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com |
|
@andrewpozdnakov7-jpg — cherry-picked as its own commit, Ran here after the pick: Thanks for taking the fixture over — that was the one part of this PR I could not write honestly myself (the control needs a committed buffer and the dispatch ordering you describe). |
Keep empty and populated constants the same raw SRV kind in heap metadata.
|
Automated triage for the maintainers, second look (a review against current Closing in favour of #2449, which makes the same fix in 33 lines by recording If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
Re-lands #1522 (closed as part of the audit batch; it cannot be reopened because the branch was force-pushed during the rebase).
What
descriptor::create_cbv only records a view when the description is non-null, so a descriptor slot reused after a null CreateConstantBufferView keeps the previous CBV instead of the unbound descriptor the D3D spec defines. main (4118f33) still behaves that way.
Addresses VIC-BT-016 from #1242.
Verification (Windows 10, Ryzen 7 5800X / RX 7800 XT)