radv_get_descriptors_state(cmd_buffer, pipelineBindPoint);
for (unsigned i = 0; i < descriptorSetCount; ++i) {
- unsigned idx = i + firstSet;
+ unsigned set_idx = i + firstSet;
RADV_FROM_HANDLE(radv_descriptor_set, set, pDescriptorSets[i]);
/* If the set is already bound we only need to update the
* (potentially changed) dynamic offsets. */
- if (descriptors_state->sets[idx] != set ||
- !(descriptors_state->valid & (1u << idx))) {
- radv_bind_descriptor_set(cmd_buffer, pipelineBindPoint, set, idx);
+ if (descriptors_state->sets[set_idx] != set ||
+ !(descriptors_state->valid & (1u << set_idx))) {
+ radv_bind_descriptor_set(cmd_buffer, pipelineBindPoint, set, set_idx);
}
- for(unsigned j = 0; j < layout->set[idx].dynamic_offset_count; ++j, ++dyn_idx) {
+ for(unsigned j = 0; j < layout->set[set_idx].dynamic_offset_count; ++j, ++dyn_idx) {
unsigned idx = j + layout->set[i + firstSet].dynamic_offset_start;
uint32_t *dst = descriptors_state->dynamic_buffers + idx * 4;
assert(dyn_idx < dynamicOffsetCount);
}
}
- cmd_buffer->push_constant_stages |= layout->set[idx].dynamic_offset_stages;
+ cmd_buffer->push_constant_stages |= layout->set[set_idx].dynamic_offset_stages;
}
}
}