vk/image: Stop hardcoding SurfaceType of VkImageView

Instead, translate VkImageViewType to a gen SurfaceType.
This commit is contained in:
Chad Versace 2015-05-28 07:46:31 -07:00
parent 7ea121687c
commit 99031aa0f3

View file

@ -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],