From: Jason Ekstrand Date: Mon, 14 Dec 2015 22:52:57 +0000 (-0800) Subject: anv: Add initial support for cube maps X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0313a5569d395c83fd4e31248895f902b88b31c;p=mesa.git anv: Add initial support for cube maps This fixes 486 cubemap CTS tests. --- diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c index 321dc3f0f5d..108ebe7c225 100644 --- a/src/vulkan/gen7_state.c +++ b/src/vulkan/gen7_state.c @@ -44,8 +44,8 @@ anv_surftype(const struct anv_image *image, VkImageViewType view_type) return SURFTYPE_1D; case VK_IMAGE_VIEW_TYPE_CUBE: case VK_IMAGE_VIEW_TYPE_CUBE_ARRAY: - anv_finishme("%s:%s: cube images", __FILE__, __func__); - /* fallthrough */ + assert(image->type == VK_IMAGE_TYPE_2D); + return SURFTYPE_CUBE; case VK_IMAGE_VIEW_TYPE_2D: case VK_IMAGE_VIEW_TYPE_2D_ARRAY: assert(image->type == VK_IMAGE_TYPE_2D); diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c index 0937677e8e4..aa57073c3e8 100644 --- a/src/vulkan/gen8_state.c +++ b/src/vulkan/gen8_state.c @@ -44,8 +44,8 @@ anv_surftype(const struct anv_image *image, VkImageViewType view_type) return SURFTYPE_1D; case VK_IMAGE_VIEW_TYPE_CUBE: case VK_IMAGE_VIEW_TYPE_CUBE_ARRAY: - anv_finishme("%s:%s: cube images", __FILE__, __func__); - /* fallthrough */ + assert(image->type == VK_IMAGE_TYPE_2D); + return SURFTYPE_CUBE; case VK_IMAGE_VIEW_TYPE_2D: case VK_IMAGE_VIEW_TYPE_2D_ARRAY: assert(image->type == VK_IMAGE_TYPE_2D);