mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 05:20:37 +02:00
zink: do not destroy staging-resource, deref it
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
819f9fd2f2
commit
a8e63387f3
1 changed files with 1 additions and 2 deletions
|
|
@ -493,8 +493,7 @@ zink_transfer_unmap(struct pipe_context *pctx,
|
|||
zink_transfer_copy_bufimage(ctx, res, staging_res, trans, true);
|
||||
}
|
||||
|
||||
zink_resource_destroy(pctx->screen, trans->staging_res);
|
||||
trans->staging_res = NULL;
|
||||
pipe_resource_reference(&trans->staging_res, NULL);
|
||||
} else
|
||||
vkUnmapMemory(screen->dev, res->mem);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue