mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 07:00:12 +01:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ zink_create_surface(struct pipe_context *pctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
ivci.format = zink_get_format(screen, templ->format);
|
ivci.format = zink_get_format(screen, templ->format);
|
||||||
|
assert(ivci.format != VK_FORMAT_UNDEFINED);
|
||||||
|
|
||||||
// TODO: format swizzles
|
// TODO: format swizzles
|
||||||
ivci.components.r = VK_COMPONENT_SWIZZLE_R;
|
ivci.components.r = VK_COMPONENT_SWIZZLE_R;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue