anv/WSI: Support more usage bits

They're just images and we have no intention of stompping alpha channels
(at least not yet), so there's no reason why you can't sample.
This commit is contained in:
Jason Ekstrand
2016-01-29 20:52:42 -08:00
parent 337c1e0871
commit 44ec860cd6
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -356,6 +356,8 @@ wsi_wl_surface_get_capabilities(VkIcdSurfaceBase *surface,
VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR;
caps->supportedUsageFlags =
VK_IMAGE_USAGE_TRANSFER_SRC_BIT |
VK_IMAGE_USAGE_SAMPLED_BIT |
VK_IMAGE_USAGE_TRANSFER_DST_BIT |
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
+2
View File
@@ -93,6 +93,8 @@ x11_surface_get_capabilities(VkIcdSurfaceBase *icd_surface,
caps->maxImageArrayLayers = 1;
caps->supportedCompositeAlpha = VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR;
caps->supportedUsageFlags =
VK_IMAGE_USAGE_TRANSFER_SRC_BIT |
VK_IMAGE_USAGE_SAMPLED_BIT |
VK_IMAGE_USAGE_TRANSFER_DST_BIT |
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;