summaryrefslogtreecommitdiffstats
path: root/src/vulkan/wsi/wsi_common_x11.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-11-20 21:57:27 +0100
committerBas Nieuwenhuizen <[email protected]>2018-11-21 21:36:55 +0100
commit33b2f74e77a33c92c5376a6f11e1a933b8fad4d7 (patch)
tree3536a55ea0eefd93b36e89a45229f57086b5c0b4 /src/vulkan/wsi/wsi_common_x11.c
parent1f1d4d571afd3a0e0f89b4dcf82d4a8d5d97bddf (diff)
vulkan: Allow storage images in the WSI.
Since apps also have to follow the ImageFormatProperties query, we can disallow formats that don't allow image stores (for AMD that would be SRGB formats). Note that this only affects anything if the app actually decides to use the flag. Had someone ask for this on IRC and at least on the AMD side we can support it. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common_x11.c')
-rw-r--r--src/vulkan/wsi/wsi_common_x11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c
index c740726fe54..6146c8f3da8 100644
--- a/src/vulkan/wsi/wsi_common_x11.c
+++ b/src/vulkan/wsi/wsi_common_x11.c
@@ -515,6 +515,7 @@ x11_surface_get_capabilities(VkIcdSurfaceBase *icd_surface,
VK_IMAGE_USAGE_TRANSFER_SRC_BIT |
VK_IMAGE_USAGE_SAMPLED_BIT |
VK_IMAGE_USAGE_TRANSFER_DST_BIT |
+ VK_IMAGE_USAGE_STORAGE_BIT |
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
return VK_SUCCESS;