diff options
| author | jsthope <68657498+jsthope@users.noreply.github.com> | 2026-11-22 15:19:11 +0100 |
|---|---|---|
| committer | jsthope <68657498+jsthope@users.noreply.github.com> | 2026-11-22 15:19:11 +0100 |
| commit | 1df4c3b0f16fd580837ff184904d2aba62d4eb5c (patch) | |
| tree | 595f7d52fb1b9fa5431dae7e24d6150ef812dce2 /runtime/src/main.cpp | |
| parent | 89b047cd8fab50675a43d76722a6a8a881f55dc2 (diff) | |
runtime: erasing a bindless descriptor key no longer idles the GPU
DescriptorTable::erase backward-shifted the key's probe cluster, which moved
other live entries, so BindlessSet::erase_key flagged the next flush as
needing idle and every texture release ended in vkDeviceWaitIdle on the next
submit.
The shift is not needed: every lookup, on the CPU and in the translated
shaders (rdna2spirv.py desc_probe), compares all eight probe slots and never
stops at an empty one. Erase now empties only the key's own slot, and inserts
reuse the hole. An erase uploads like an add (one slot, no idle). Replacing a
live key's index, a relocating insert and table growth still require idle.
Tests: descriptor_table_test checks that an erase in the middle of a cluster
leaves every other slot byte-identical and marks one changed slot (it fails
on the old erase); vk_bindless_test now expects no idle after an erase.
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions