diff options
author | Jason Ekstrand <[email protected]> | 2016-05-16 10:25:54 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-17 12:17:22 -0700 |
commit | 45c93384e519aefba1d28388955b2638f4d26ea3 (patch) | |
tree | bb4eca1ce16d8c001dc4d2e04c940311fddc6ee4 /src/intel/vulkan/anv_image.c | |
parent | 100db3d31c1fd9284fc96132dccde1fa289a88c3 (diff) |
anv: Add a devinfo argument to the get_format functions
Diffstat (limited to 'src/intel/vulkan/anv_image.c')
-rw-r--r-- | src/intel/vulkan/anv_image.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index f517aa61f58..208e3779c78 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -131,7 +131,8 @@ make_surface(const struct anv_device *dev, ok = isl_surf_init(&dev->isl_dev, &anv_surf->isl, .dim = vk_to_isl_surf_dim[vk_info->imageType], - .format = anv_get_isl_format(vk_info->format, aspect, vk_info->tiling), + .format = anv_get_isl_format(&dev->info, vk_info->format, + aspect, vk_info->tiling), .width = image->extent.width, .height = image->extent.height, .depth = image->extent.depth, @@ -466,8 +467,8 @@ anv_image_view_init(struct anv_image_view *iview, iview->aspect_mask = pCreateInfo->subresourceRange.aspectMask; iview->vk_format = pCreateInfo->format; - struct anv_format format = - anv_get_format(pCreateInfo->format, range->aspectMask, image->tiling); + struct anv_format format = anv_get_format(&device->info, pCreateInfo->format, + range->aspectMask, image->tiling); iview->base_layer = range->baseArrayLayer; iview->base_mip = range->baseMipLevel; @@ -621,7 +622,7 @@ void anv_buffer_view_init(struct anv_buffer_view *view, /* TODO: Handle the format swizzle? */ - view->format = anv_get_isl_format(pCreateInfo->format, + view->format = anv_get_isl_format(&device->info, pCreateInfo->format, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_TILING_LINEAR); view->bo = buffer->bo; |