diff options
author | Chad Versace <[email protected]> | 2015-08-17 15:02:38 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-08-18 12:43:57 -0700 |
commit | b0875aa911073ebab7eb38ced07bf62ed4ac5d9b (patch) | |
tree | b88037f854c67f755a3e915ec82eabe685dbde17 /src/vulkan/anv_x11.c | |
parent | d52822541ee792516cfa5ab14e939ec66396f125 (diff) |
vk: Assert that swap chain format is a color format
Diffstat (limited to 'src/vulkan/anv_x11.c')
-rw-r--r-- | src/vulkan/anv_x11.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |