zink: move surface refs to the end of descriptor updating
keeping descriptor stuff with descriptor stuff Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9348>
This commit is contained in:
parent
d06c2ae21f
commit
c5ce20e97a
1 changed files with 4 additions and 4 deletions
|
|
@ -512,10 +512,6 @@ update_descriptors(struct zink_context *ctx, struct zink_screen *screen, bool is
|
|||
}
|
||||
if (!cache_hit)
|
||||
vkUpdateDescriptorSets(screen->dev, num_wds, wds, 0, NULL);
|
||||
for (int i = 0; i < num_surface_refs; i++) {
|
||||
if (surface_refs[i])
|
||||
zink_batch_reference_surface(batch, surface_refs[i]);
|
||||
}
|
||||
}
|
||||
|
||||
if (is_compute)
|
||||
|
|
@ -546,6 +542,10 @@ update_descriptors(struct zink_context *ctx, struct zink_screen *screen, bool is
|
|||
zink_resource_barrier(ctx, NULL, transitions[i].res,
|
||||
transitions[i].layout, transitions[i].access, transitions[i].stage);
|
||||
}
|
||||
for (int i = 0; i < num_surface_refs; i++) {
|
||||
if (surface_refs[i])
|
||||
zink_batch_reference_surface(batch, surface_refs[i]);
|
||||
}
|
||||
if (!need_flush)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue