vk: Assert that swap chain format is a color format
authorChad Versace <chad.versace@intel.com>
Mon, 17 Aug 2015 22:02:38 +0000 (15:02 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 18 Aug 2015 19:43:57 +0000 (12:43 -0700)
src/vulkan/anv_x11.c

index cc11a5fc7622f850d380fc7f582e8cd07ef04fb4..aee5775c9deff122cf53b5ca935645753bc9fed0 100644 (file)
@@ -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,