aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_meta_clear.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-24 19:49:12 -0800
committerJason Ekstrand <[email protected]>2016-02-27 10:26:14 -0800
commite9d126f23b66751ae644c3125668ecf5d1e0f86b (patch)
treeea0ae923323dc5dbd40f6ee9c5108183bd017eeb /src/intel/vulkan/anv_meta_clear.c
parentb4c16fd01a4ea7f2fd579ee30b8a6a8d00bdc3b3 (diff)
anv/image: Add a ussage_mask field to image_view_init
This allows us to avoid doing some unneeded work on the meta paths where we know that the image view will be used for exactly one thing. The meta paths also sometimes do things that aren't quite valid like setting the array slice on a 3-D texture and we want to limit the number of paths that need to be able to sensibly handle the lies.
Diffstat (limited to 'src/intel/vulkan/anv_meta_clear.c')
-rw-r--r--src/intel/vulkan/anv_meta_clear.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_meta_clear.c b/src/intel/vulkan/anv_meta_clear.c
index 739ae09582c..227f8f35115 100644
--- a/src/intel/vulkan/anv_meta_clear.c
+++ b/src/intel/vulkan/anv_meta_clear.c
@@ -811,7 +811,7 @@ anv_cmd_clear_image(struct anv_cmd_buffer *cmd_buffer,
.layerCount = 1
},
},
- cmd_buffer, 0);
+ cmd_buffer, 0, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT);
VkFramebuffer fb;
anv_CreateFramebuffer(device_h,