this is simpler and also fixes rebinding samplerviews which use
a levelCount > 1
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16508>
if (surface->simage_view)
return false;
assert(!res->obj->dt);
- VkImageViewCreateInfo ivci = create_ivci(screen,
- zink_resource((*psurface)->texture), (*psurface), surface->base.texture->target);
+ VkImageViewCreateInfo ivci = surface->ivci;
+ ivci.image = res->obj->image;
uint32_t hash = hash_ivci(&ivci);
simple_mtx_lock(&res->surface_mtx);