Repository navigation
Conversation
|
Tested
Cross-vendor hardware verification confirms the buffer UAV implementations behave identically and cleanly on AMD RDNA4. AI-assisted. |
|
Tested 7e76ea4 on Intel Arc Graphics (Meteor Lake-H iGPU, Xe-LPG, 0x8086:0x7d55), Intel driver 32.0.101.6127, Vulkan 1.3.295, Windows 11 Pro 26H2 (build 26300), MSVC + Ninja via Only this test was run. The branch does not show the |
|
RDNA3 run: pass. Tested |
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): no regression from this PR. RTX 4080 SUPER: 106/107 pass (only |
|
Closing as superseded: main now has write_buffer_uav (typed buffer UAVs and UAV counters) from 209d86b, and the dedicated d3d12_buffer_uav_test already creates raw/structured/typed UAVs and clears them through CreateUnorderedAccessView. My descriptor tests and clear cases duplicated that. No code needs to land from this branch. AI-assisted. |
Claimed in the coordination issue: #1745 (comment)
What and why
ID3D12Device::CreateUnorderedAccessViewstill hitstub("... (buffer)")for every buffer. This implements the UAV half of D3D-233 without touching CBV/SRV, so it does not overlap #1729 or #1773:D3D12_BUFFER_UAV_FLAG_RAW,R32_TYPELESS, stride 0): stride 0,num_records = NumElements * 4bytes, format 0 (untyped),OobSelect::raw.DXGI_FORMAT_UNKNOWN): the given 14-bit stride,num_records = NumElements, format 0, structured OOB.num_records = NumElements, structured OOB.FirstElement * element_size;FirstElement + NumElementsis bounded against the resource width. A refused description, a counter or a counter offset leaves the 32-byte slot zeroed, and a buffer withoutALLOW_UNORDERED_ACCESSis refused.counterresource orCounterOffsetInBytes); no descriptor-space changes.d3d12_uav_clear_testnow also writes two of its clear slots throughCreateUnorderedAccessView(raw and structured) instead of by hand, so the descriptor is exercised by a real GPU clear, not only decoded.Tested
Windows 11 x64, NVIDIA GeForce RTX 3070, driver 621.01, Vulkan 1.4.357,
LEONIDA_VK_VALIDATION=1.d3d12_compute_test.exepasses and decodes the raw, structured and typed buffer UAV slots:R32G32B32A32_FLOAT: address = VA + 16, stride 16, 4 records, the format's GFX10 code;ALLOW_UNORDERED_ACCESSboth leave all eight descriptor words zero.d3d12_uav_clear_test.exepasses with the created raw and structured views included, alongside the existing buffer/texture clears. No validation messages. No game data. AI-assisted.