projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d528225
)
vk: Assert that swap chain format is a color format
author
Chad Versace
<chad.versace@intel.com>
Mon, 17 Aug 2015 22:02:38 +0000
(15:02 -0700)
committer
Chad Versace
<chad.versace@intel.com>
Tue, 18 Aug 2015 19:43:57 +0000
(12:43 -0700)
src/vulkan/anv_x11.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_x11.c
b/src/vulkan/anv_x11.c
index cc11a5fc7622f850d380fc7f582e8cd07ef04fb4..aee5775c9deff122cf53b5ca935645753bc9fed0 100644
(file)
--- 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,