diff options
author | Erik Faye-Lund <[email protected]> | 2019-06-12 18:24:30 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:44 +0000 |
commit | a8e63387f3403ddb56a27a41229cd424d6d43da8 (patch) | |
tree | 2effdde3b5b237364e8babaaee672a79ad323079 /src/gallium | |
parent | 819f9fd2f2d75af6467127fcea71ac9c3289a640 (diff) |
zink: do not destroy staging-resource, deref it
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/zink/zink_resource.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 24dc051513d..34c7ed0e500 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -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); |