From cb30acacedbe51a590b14be25c4a345d92413403 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 28 May 2015 07:37:59 -0700 Subject: [PATCH] vk/image: Add tables for gen SurfaceType Tables for mapping VkImageType and VkImageViewType to gen SurfaceType. Tables are unused. --- src/vulkan/image.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; -- 2.30.2