mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
kk: Use pipeline_layout.dynamic_descriptor_offset
Reviewed-by: Aitor Camacho <aitor@lunarg.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39411>
This commit is contained in:
parent
c6e725de05
commit
9cb4703c94
1 changed files with 2 additions and 7 deletions
|
|
@ -183,13 +183,8 @@ kk_bind_descriptor_sets(struct kk_descriptor_state *desc,
|
|||
* it changes set_dynamic_buffer_start[s], this binding is implicitly
|
||||
* invalidated.
|
||||
*/
|
||||
uint8_t dyn_buffer_start = 0u;
|
||||
for (uint32_t i = 0u; i < info->firstSet; ++i) {
|
||||
const struct kk_descriptor_set_layout *set_layout =
|
||||
vk_to_kk_descriptor_set_layout(pipeline_layout->set_layouts[i]);
|
||||
if (set_layout)
|
||||
dyn_buffer_start += set_layout->vk.dynamic_descriptor_count;
|
||||
}
|
||||
uint8_t dyn_buffer_start =
|
||||
pipeline_layout->dynamic_descriptor_offset[info->firstSet];
|
||||
|
||||
uint32_t next_dyn_offset = 0;
|
||||
for (uint32_t i = 0; i < info->descriptorSetCount; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue