this guarantees compaction of the size arrays
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19327>
/* some sets can have multiple descriptor types: ensure the size arrays for these types are contiguous for creating the pool key */
VkDescriptorPoolSize *sz = &sizes[idx];
VkDescriptorPoolSize sz2[4];
- if (screen->compact_descriptors) {
+ if (screen->compact_descriptors || (pg->is_compute && stages[0]->nir->info.stage == MESA_SHADER_KERNEL)) {
unsigned found = 0;
while (found < num_type_sizes[desc_type]) {
if (sz->descriptorCount) {