mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
zink: unset resource layout+access when doing storage setup
the previous access info is transferred to the staging resource for the copy, and the new image has no access info cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15716>
This commit is contained in:
parent
65394fcaef
commit
f05d0f1238
1 changed files with 4 additions and 0 deletions
|
|
@ -1828,6 +1828,10 @@ zink_resource_object_init_storage(struct zink_context *ctx, struct zink_resource
|
|||
}
|
||||
struct zink_resource staging = *res;
|
||||
staging.obj = old_obj;
|
||||
staging.all_binds = 0;
|
||||
res->layout = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
res->obj->access = 0;
|
||||
res->obj->access_stage = 0;
|
||||
bool needs_unref = true;
|
||||
if (zink_resource_has_usage(res)) {
|
||||
zink_batch_reference_resource_move(&ctx->batch, res);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue