From: Chad Versace Date: Thu, 28 May 2015 14:46:31 +0000 (-0700) Subject: vk/image: Stop hardcoding SurfaceType of VkImageView X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99031aa0f320302f186576ed916651276f250613;p=mesa.git vk/image: Stop hardcoding SurfaceType of VkImageView Instead, translate VkImageViewType to a gen SurfaceType. --- 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],