mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
zink: eliminate pre barrier for adding resource binds
this will automatically be handled by the copies below Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21739>
This commit is contained in:
parent
d133f95084
commit
a0f3d171f6
1 changed files with 0 additions and 1 deletions
|
|
@ -1309,7 +1309,6 @@ add_resource_bind(struct zink_context *ctx, struct zink_resource *res, unsigned
|
|||
{
|
||||
struct zink_screen *screen = zink_screen(ctx->base.screen);
|
||||
assert((res->base.b.bind & bind) == 0);
|
||||
zink_screen(ctx->base.screen)->image_barrier(ctx, res, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, 0, 0);
|
||||
res->base.b.bind |= bind;
|
||||
struct zink_resource_object *old_obj = res->obj;
|
||||
if (bind & ZINK_BIND_DMABUF && !res->modifiers_count && screen->info.have_EXT_image_drm_format_modifier) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue