From: Erik Faye-Lund Date: Tue, 9 Jun 2020 19:08:05 +0000 (+0200) Subject: zink: assert that image-view format isn't undefined X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48925f6927e0623afaa43e98ee94e876a909d3db;p=mesa.git zink: assert that image-view format isn't undefined Reviewed-by: Mike Blumenkrantz Part-of: --- diff --git a/src/gallium/drivers/zink/zink_surface.c b/src/gallium/drivers/zink/zink_surface.c index e9c02af0c92..d5d0a3c6dbc 100644 --- a/src/gallium/drivers/zink/zink_surface.c +++ b/src/gallium/drivers/zink/zink_surface.c @@ -94,6 +94,7 @@ zink_create_surface(struct pipe_context *pctx, } ivci.format = zink_get_format(screen, templ->format); + assert(ivci.format != VK_FORMAT_UNDEFINED); // TODO: format swizzles ivci.components.r = VK_COMPONENT_SWIZZLE_R;