mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-10 16:10:26 +01:00
nvk: Use pipeline_layout.dynamic_descriptor_offset
Reviewed-by: Aitor Camacho <aitor@lunarg.com> Reviewed-by: Mary Guillemard <mary@mary.zone> Tested-by: Mary Guillemard <mary@mary.zone> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39411>
This commit is contained in:
parent
25acd26a0f
commit
c8e47ab40c
1 changed files with 3 additions and 8 deletions
|
|
@ -863,14 +863,9 @@ nvk_bind_descriptor_sets(struct nvk_cmd_buffer *cmd,
|
|||
* it changes set_dynamic_buffer_start[s], this binding is implicitly
|
||||
* invalidated.
|
||||
*/
|
||||
uint8_t dyn_buffer_end = 0u;
|
||||
for (uint32_t i = 0u; i < info->firstSet; ++i) {
|
||||
const struct nvk_descriptor_set_layout *set_layout =
|
||||
vk_to_nvk_descriptor_set_layout(pipeline_layout->set_layouts[i]);
|
||||
if (set_layout)
|
||||
dyn_buffer_end += set_layout->vk.dynamic_descriptor_count;
|
||||
}
|
||||
const uint8_t dyn_buffer_start = dyn_buffer_end;
|
||||
const uint8_t dyn_buffer_start =
|
||||
pipeline_layout->dynamic_descriptor_offset[info->firstSet];
|
||||
uint8_t dyn_buffer_end = dyn_buffer_start;
|
||||
|
||||
uint32_t next_dyn_offset = 0;
|
||||
for (uint32_t i = 0; i < info->descriptorSetCount; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue