From b0875aa911073ebab7eb38ced07bf62ed4ac5d9b Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 17 Aug 2015 15:02:38 -0700 Subject: [PATCH] vk: Assert that swap chain format is a color format --- src/vulkan/anv_x11.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vulkan/anv_x11.c b/src/vulkan/anv_x11.c index cc11a5fc762..aee5775c9de 100644 --- a/src/vulkan/anv_x11.c +++ b/src/vulkan/anv_x11.c @@ -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, -- 2.30.2