zink: assert that image-view format isn't undefined

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5407>
This commit is contained in:
Erik Faye-Lund 2020-06-09 21:08:05 +02:00 committed by Marge Bot
parent 2d3c6605d6
commit 48925f6927
1 changed files with 1 additions and 0 deletions

View File

@ -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;