mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
zink: trigger multi-context buffer invalidate on internal buffer invalidate
this is the same as zink_context_replace_buffer_storage() cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36473>
This commit is contained in:
parent
f1ba8f44d9
commit
dedfb5ef78
1 changed files with 2 additions and 1 deletions
|
|
@ -2196,7 +2196,8 @@ invalidate_buffer(struct zink_context *ctx, struct zink_resource *res)
|
|||
res->queue = VK_QUEUE_FAMILY_IGNORED;
|
||||
if (needs_bda)
|
||||
zink_resource_get_address(screen, res);
|
||||
zink_resource_rebind(ctx, res);
|
||||
if (!zink_resource_rebind(ctx, res))
|
||||
ctx->buffer_rebind_counter = p_atomic_inc_return(&screen->buffer_rebind_counter);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue