diff options
| author | Shadman PC <iamanthonytony@gmail.com> | 2026-11-22 18:00:09 +0600 |
|---|---|---|
| committer | Shadman PC <iamanthonytony@gmail.com> | 2026-11-22 18:00:09 +0600 |
| commit | 2782aa7a6a42c3be5e1a99de051401a33206ef29 (patch) | |
| tree | 30e0694aa2e68058e5a3cf53a2709e49c1013869 /docs/d3d12_command_objects.md | |
| parent | bb2e18421dac527374eb837c88b5063c5d96f81f (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 'docs/d3d12_command_objects.md')
0 files changed, 0 insertions, 0 deletions