From 99031aa0f320302f186576ed916651276f250613 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 28 May 2015 07:46:31 -0700 Subject: [PATCH] vk/image: Stop hardcoding SurfaceType of VkImageView Instead, translate VkImageViewType to a gen SurfaceType. --- src/vulkan/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/image.c b/src/vulkan/image.c index 8996d9cbcba..2a441a47053 100644 --- a/src/vulkan/image.c +++ b/src/vulkan/image.c @@ -270,7 +270,7 @@ anv_image_view_init(struct anv_surface_view *view, }; struct GEN8_RENDER_SURFACE_STATE surface_state = { - .SurfaceType = SURFTYPE_2D, + .SurfaceType = anv_surf_type_from_image_view_type[pCreateInfo->viewType], .SurfaceArray = false, .SurfaceFormat = format, .SurfaceVerticalAlignment = anv_valign[image->v_align], -- 2.30.2