diff options
author | Jason Ekstrand <[email protected]> | 2016-01-29 20:52:42 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-01-29 20:52:44 -0800 |
commit | 44ec860cd6851c5843faa85e041d47a25e640c8f (patch) | |
tree | cfd698517ba512a4a96b604c35398e880bf3d3df | |
parent | 337c1e0871eb46e3c07cce2e291636653eb5f3bc (diff) |
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.
-rw-r--r-- | src/vulkan/anv_wsi_wayland.c | 2 | ||||
-rw-r--r-- | src/vulkan/anv_wsi_x11.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/vulkan/anv_wsi_wayland.c b/src/vulkan/anv_wsi_wayland.c index fa5d340eee5..9f4fee910c3 100644 --- a/src/vulkan/anv_wsi_wayland.c +++ b/src/vulkan/anv_wsi_wayland.c @@ -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; diff --git a/src/vulkan/anv_wsi_x11.c b/src/vulkan/anv_wsi_x11.c index 8d0d1580d3e..1cd3d7fd419 100644 --- a/src/vulkan/anv_wsi_x11.c +++ b/src/vulkan/anv_wsi_x11.c @@ -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; |