diff --git a/src/gallium/drivers/zink/zink_surface.c b/src/gallium/drivers/zink/zink_surface.c index 837853f9ad2..b9723eafbdb 100644 --- a/src/gallium/drivers/zink/zink_surface.c +++ b/src/gallium/drivers/zink/zink_surface.c @@ -263,6 +263,9 @@ zink_create_surface(struct pipe_context *pctx, /* 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);