From: Chad Versace Date: Thu, 28 May 2015 14:37:59 +0000 (-0700) Subject: vk/image: Add tables for gen SurfaceType X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb30acacedbe51a590b14be25c4a345d92413403;p=mesa.git vk/image: Add tables for gen SurfaceType Tables for mapping VkImageType and VkImageViewType to gen SurfaceType. Tables are unused. --- diff --git a/src/vulkan/image.c b/src/vulkan/image.c index eaa0f24f732..4beb58ef05f 100644 --- a/src/vulkan/image.c +++ b/src/vulkan/image.c @@ -41,6 +41,19 @@ static const uint8_t anv_valign[] = { [16] = VALIGN16, }; +static const uint8_t anv_surf_type_from_image_type[] = { + [VK_IMAGE_TYPE_1D] = SURFTYPE_1D, + [VK_IMAGE_TYPE_2D] = SURFTYPE_2D, + [VK_IMAGE_TYPE_3D] = SURFTYPE_3D, +}; + +static const uint8_t anv_surf_type_from_image_view_type[] = { + [VK_IMAGE_VIEW_TYPE_1D] = SURFTYPE_1D, + [VK_IMAGE_VIEW_TYPE_2D] = SURFTYPE_2D, + [VK_IMAGE_VIEW_TYPE_3D] = SURFTYPE_3D, + [VK_IMAGE_VIEW_TYPE_CUBE] = SURFTYPE_CUBE, +}; + static const struct anv_tile_info { uint32_t width; uint32_t height;