summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_meta_copy.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-05-16 10:25:54 -0700
committerJason Ekstrand <[email protected]>2016-05-17 12:17:22 -0700
commit45c93384e519aefba1d28388955b2638f4d26ea3 (patch)
treebb4eca1ce16d8c001dc4d2e04c940311fddc6ee4 /src/intel/vulkan/anv_meta_copy.c
parent100db3d31c1fd9284fc96132dccde1fa289a88c3 (diff)
anv: Add a devinfo argument to the get_format functions
Diffstat (limited to 'src/intel/vulkan/anv_meta_copy.c')
-rw-r--r--src/intel/vulkan/anv_meta_copy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_meta_copy.c b/src/intel/vulkan/anv_meta_copy.c
index c509c8fa1c0..ff560ce1e84 100644
--- a/src/intel/vulkan/anv_meta_copy.c
+++ b/src/intel/vulkan/anv_meta_copy.c
@@ -161,7 +161,8 @@ meta_copy_buffer_to_image(struct anv_cmd_buffer *cmd_buffer,
&anv_image_get_surface_for_aspect_mask(image, aspect)->isl;
struct anv_meta_blit2d_surf img_bsurf =
blit_surf_for_image(image, img_isl_surf);
- enum isl_format buf_format = anv_get_isl_format(image->vk_format, aspect,
+ enum isl_format buf_format = anv_get_isl_format(&cmd_buffer->device->info,
+ image->vk_format, aspect,
VK_IMAGE_TILING_LINEAR);
struct anv_meta_blit2d_surf buf_bsurf = {
.bo = buffer->bo,