this avoids an assert in create_ivci while enforcing correct behavior
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18446>
/* mutable not set by default */
zink_resource_object_init_mutable(zink_context(pctx), res);
+ if (!zink_get_format(zink_screen(pctx->screen), templ->format))
+ return NULL;
+
VkImageViewCreateInfo ivci = create_ivci(zink_screen(pctx->screen), res, templ,
pres->target == PIPE_TEXTURE_3D ? target_2d[is_array] : pres->target);