Repository navigation
runtime: bind published D16 buffer stores to typed UAVs - #3302
Conversation
R0Y00
left a comment
There was a problem hiding this comment.
Independent Release review on 6dee0421. I built offscreen_check, compile_dxil, startup_stream_consumer and d3d12_xs_shim, then ran ctest --preset release --no-tests=error --output-on-failure -j 1 -R '^(startup_compute_(half_buffer_uav|dispatch|dispatch_entry|dispatch_output|dispatch_native)_(warp|hardware|controls)|native_direct_container)$'. Ten passed and two inbox-WARP wave32 cases skipped, with no failures. On RTX 4060 Laptop, all three formats matched 13 typed records starting at byte 8 and the guards. All 18 invalid descriptors/ranges preserved the sentinel and refused. Windows 11 build 26200, DXC 10.0.26100, RTX driver 32.0.16.1656, debug layer enabled. The manifest/runtime pairing uses the guest record count and validates format, stride, selectors and bounds before binding; the raw path retains its existing alignment. This covers published buffer views.
Change
Refs #3224 and #2935. Native D16 buffer stores produce DXIL, but requests that bind
half_buffer_uavstop at manifest publication. On the baseline, all three source-built requests emitted.cs.csoand reportedunsupported startup runtime manifest bindings: UAV kind half_buffer_uav.Publish a typed half-buffer view for 2-, 4- and 8-byte elements. At Dispatch, validate the gfx10 format, stride, selectors, bounds mode, alias, range and desktop typed-store support. The runtime uses the guest record count and element-aligned offset to create the D3D12 UAV. The producer and runtime use the existing Compute cache and slot 67/14 route. The scope is hardware table descriptors. Buffer UAV tokens are covered by #2961.
Verification
6dee0421on19358dae, clean merge checked against48ca9ab1. Windows 11 26300.10075, MSVC 19.52.37029, DXC 1.9.2602.17, Agility 1.620.2. RTX 4070 driver 32.0.16.2124 and app-local WARP 1.0.22.startup_compute_dispatch_native_warpmissed 288 writes, with word 0 left atc5c5c5c5instead ofea74e376. A clean build of the parent reproduced the same mismatch. This is the partial-wave ballot case in native compute: run wave32 direct modules on WARP (proposal, stage 1 claimed) #3160. Normal raw-output, descriptor-entry and range-refusal tests passed on both adapters.Evidence and follow-up
The fixture builds the GPU programs from local Python and checks exact binary16 output with a CPU reference. The historical census motivates the scope. The measured compatibility gain here is the three source-built requests through the published runtime path. I used Codex to prepare the change and ran verification locally.