In `desc_probe` (`%desc_lookup_fn`), the bindless index word at `base + 9`
was loaded from the `%desc_map` storage buffer before the conditional branch
`OpBranchConditional %match %dl_hit %dl_next`.
On every non-matching slot probed as well as on 8-probe misses, this issued
an unnecessary global storage buffer load that was immediately discarded.
Moving the index load into `%dl_hit` eliminates up to 8 storage buffer reads
per miss and 1 read per non-matching collision slot, reducing memory traffic
and register pressure.
Mirrored the same deferred load structure in `runtime/test/vk_descriptor_bench.cpp`.
Added `test_desc_probe_defers_index_load_to_hit_block` to `tests/test_desc_cache.py`.
With the Compatibility Pack installed, Windows enumerates Mesa's D3D12
translation layer next to the real GPU, and Dozen reports DISCRETE_GPU. Every
harness used "the last discrete device wins", so it selected the wrapper and
the resulting failures looked like translator bugs (#915). One shared rank now
treats Microsoft's vendor as a translation layer, then prefers discrete over
integrated over virtual over CPU, keeping the first device on a tie. A CPU-only
test covers the reported enumeration without needing the Compatibility Pack.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
On an RTX 4080 SUPER (Windows 617.14) the host_device_local placement's memory type 4
(DEVICE_LOCAL | HOST_VISIBLE | HOST_COHERENT) refuses a 160 KiB allocation with
VK_ERROR_OUT_OF_DEVICE_MEMORY. alloc_buffer_mt returned false without a word and the
placement loop exited 1, so a default run measured only the 1k table.
alloc_buffer_mt now reports the failing call and its VkResult. The optional ReBAR placement
is skipped with a note, as when no such memory type exists; a device_local or host_visible
allocation that fails is still an error, now with its reason.