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:
parent
2d3c6605d6
commit
48925f6927
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue