Repository navigation
compute: share one raw UAV for reads and writes to the same slot - #3213
Conversation
R0Y00
left a comment
There was a problem hiding this comment.
Independent verification of exact head 8509b495 on main d474a393. The alias is based on a reachable raw store and the proven fixed descriptor table/offset; the emitter still validates the descriptor words and reuses the same writable handle. Built startup_stream_consumer d3d12_xs_shim compile_dxil native_store_replay in Debug and Release /O2. Ran ctest --test-dir <build> --no-tests=error -j1 -V -R '^(startup_compute_dispatch_native_(warp|hardware)|native_global_load_hardware|native_smem_vcc_hardware)$'. Each configuration had three passes and one WARP wave32 capability skip. The RTX 4060 Laptop readback matched all 320 dwords including the untouched tail, with one UAV, zero SRVs, and no D3D12 debug error. Windows 11 26200.9974, driver 32.0.16.1656, WARP 10.0.26100.9818. The current main trial at 6cc46a3c has identical PR source/fixture contents. Hosted Windows passed.
|
Adjacent regression note from the #3209 work, on an independently built, unmodified upstream main at 2e12dd8 (Debug, Windows, app-local Agility 1.620.2, WARP 1.0.22.0 / RX 7900 XT driver 32.0.32029.2010):
Reproduced the same two original failures on the #3209 candidate in both configurations. The candidate has no production changes. Keeping the original tests unchanged in #3209; this is separate evidence, not a request to reopen the merged shared-UAV change. Repro: ctest --preset dev --no-tests=error -j1 -V -R "^startup_compute_dispatch_native_(warp|hardware)$" AI-assisted. |
Refs #3209.
When a reachable raw store and a raw load use the same proven fixed descriptor-table slot, use the same raw UAV handle for both. A second SRV for that slot gives the runtime conflicting states for one resource. The C++ solver still verifies the descriptor words.
The source-built control reads, transforms, and writes the same buffer within one dispatch. It checks all 320 dwords, including an untouched tail, and verifies that the dispatch binds one UAV and zero SRVs. Local verification on
8509b4951(MSVC Release /O2, Windows 11 build 26200, RTX 4060 Laptop GPU driver 32.0.16.1656 and WARP). Hardware passedctest --preset release --no-tests=error -R '^startup_compute_dispatch_native_(warp|hardware)$', including the shared UAV readback. WARP reported a wave32 capability skip.