compute: share one raw UAV for reads and writes to the same slot #3213
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3213"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T21:50:45Z.
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.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T22:01:06Z.
Review: COMMENTED
Independent verification of exact head
8509b495onmaind474a393. 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. Builtstartup_stream_consumer d3d12_xs_shim compile_dxil native_store_replayin Debug and Release /O2. Ranctest --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 currentmaintrial at6cc46a3chas identical PR source/fixture contents. Hosted Windows passed.Imported from R0Y00/Xbox2Windows. Originally posted by xiaoqi72665 on 2026-11-27T23:18:06Z.
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.