mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01:00
vk: Assert that swap chain format is a color format
This commit is contained in:
parent
d52822541e
commit
b0875aa911
1 changed files with 2 additions and 0 deletions
|
|
@ -143,6 +143,8 @@ VkResult anv_CreateSwapChainWSI(
|
|||
&image_h);
|
||||
|
||||
image = anv_image_from_handle(image_h);
|
||||
assert(anv_format_is_color(image->format));
|
||||
|
||||
surface = &image->primary_surface;
|
||||
|
||||
anv_AllocMemory(_device,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue