mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
zink: update surface info when rebinding to storage
fixes some validation for imageless framebuffer usage Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12843>
This commit is contained in:
parent
ad57bb1b7d
commit
0734484058
1 changed files with 4 additions and 0 deletions
|
|
@ -312,6 +312,10 @@ zink_rebind_surface(struct zink_context *ctx, struct pipe_surface **psurface)
|
|||
surface->simage_view = surface->image_view;
|
||||
surface->image_view = image_view;
|
||||
surface->obj = zink_resource(surface->base.texture)->obj;
|
||||
/* update for imageless fb */
|
||||
surface->info.flags = res->obj->vkflags;
|
||||
surface->info.usage = res->obj->vkusage;
|
||||
surface->info_hash = _mesa_hash_data(&surface->info, sizeof(surface->info));
|
||||
zink_batch_usage_set(&surface->batch_uses, ctx->batch.state);
|
||||
simple_mtx_unlock(&res->surface_mtx);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue