diff options
author | Erik Faye-Lund <[email protected]> | 2020-06-09 21:08:05 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-09 19:35:26 +0000 |
commit | 48925f6927e0623afaa43e98ee94e876a909d3db (patch) | |
tree | 35a5af2f6cf15863dc79a20fd9cec328fdb3cc31 /src/gallium | |
parent | 2d3c6605d69559525adc12f4b2c01d06fe9328a4 (diff) |
zink: assert that image-view format isn't undefined
Reviewed-by: Mike Blumenkrantz <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5407>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/zink/zink_surface.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |