upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
authorShadman PC <iamanthonytony@gmail.com>2026-11-22 18:00:09 +0600
committerShadman PC <iamanthonytony@gmail.com>2026-11-22 18:00:09 +0600
commit2782aa7a6a42c3be5e1a99de051401a33206ef29 (patch)
tree30e0694aa2e68058e5a3cf53a2709e49c1013869 /runtime/test/queue_proxy_test.cpp
parentbb2e18421dac527374eb837c88b5063c5d96f81f (diff)
perf(translator): defer descriptor index load to hit block in desc_probe
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`.
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions