mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
zink: fix image sync deferral
each of these cases wasn't actually checking what the comment claimed it was checking, which would add unnecessary deferred sync Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36846>
This commit is contained in:
parent
af7b39a22f
commit
4d0650d188
1 changed files with 2 additions and 2 deletions
|
|
@ -199,7 +199,7 @@ resource_defer_image_barrier(struct zink_context *ctx, struct zink_resource *res
|
|||
if (res->bind_count[!is_compute])
|
||||
_mesa_set_add(ctx->need_barriers[!is_compute], res);
|
||||
/* also queue a layout change if this is a non-shader layout */
|
||||
if (res->bind_count[is_compute] && !is_shader)
|
||||
if (res->bind_count[is_compute] && !is_shader && !is_compute)
|
||||
_mesa_set_add(ctx->need_barriers[is_compute], res);
|
||||
|
||||
}
|
||||
|
|
@ -215,7 +215,7 @@ resource_check_defer_image_barrier(struct zink_context *ctx, struct zink_resourc
|
|||
!res->bind_count[!is_compute] && (!is_compute || !res->fb_bind_count))
|
||||
return;
|
||||
|
||||
if (res->bind_count[!is_compute] && is_shader) {
|
||||
if ((res->bind_count[1] && is_shader) || (res->bind_count[0] && is_compute)) {
|
||||
/* if the layout is the same between gfx and compute, do nothing */
|
||||
if (layout == zink_descriptor_util_image_layout_eval(ctx, res, !is_compute))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue