summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_meta.c
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2016-01-26 11:10:56 -0800
committerJason Ekstrand <[email protected]>2016-01-26 20:29:16 -0800
commitc20f78dc5d7e0fabd58c2d8548d5a6ead1ec1072 (patch)
tree62f9594c8642a51bb28b817a8b8d99d64f768a42 /src/vulkan/anv_meta.c
parent9bc72a9213432622364bdeb0ddd053a494896a6e (diff)
anv: Support swizzled formats.
Some formats require a swizzle in order to map them to actual hardware formats. This allows us to turn on two new Vulkan formats.
Diffstat (limited to 'src/vulkan/anv_meta.c')
-rw-r--r--src/vulkan/anv_meta.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c
index 7034f70d6ac..4fed2ea9d54 100644
--- a/src/vulkan/anv_meta.c
+++ b/src/vulkan/anv_meta.c
@@ -972,7 +972,8 @@ choose_buffer_format(struct anv_image *image, VkImageAspectFlagBits aspect)
* work if the buffer is the destination.
*/
enum isl_format linear_format = anv_get_isl_format(image->vk_format, aspect,
- VK_IMAGE_TILING_LINEAR);
+ VK_IMAGE_TILING_LINEAR,
+ NULL);
return vk_format_for_size(isl_format_layouts[linear_format].bs);
}