summaryrefslogtreecommitdiffstats
path: root/src/vulkan/image.c
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-05-28 07:46:31 -0700
committerChad Versace <[email protected]>2015-06-25 16:53:22 -0700
commit99031aa0f320302f186576ed916651276f250613 (patch)
tree8d0f025bdd37b2e08843325467d8d464bf2b7ac1 /src/vulkan/image.c
parent7ea121687c9048788dc42ccdf4d0bbfc29810df1 (diff)
vk/image: Stop hardcoding SurfaceType of VkImageView
Instead, translate VkImageViewType to a gen SurfaceType.
Diffstat (limited to 'src/vulkan/image.c')
-rw-r--r--src/vulkan/image.c2
1 files changed, 1 insertions, 1 deletions
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],