From fa120cb31cd8802b2a3a758acb1d911b5cbb22a2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 31 Oct 2019 16:57:29 -0500 Subject: [PATCH] anv: Input attachments are always single-plane Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/genX_cmd_buffer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 5342cd7860f..67ba0307195 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -2282,10 +2282,11 @@ emit_binding_table(struct anv_cmd_buffer *cmd_buffer, /* For depth and stencil input attachments, we treat it like any * old texture that a user may have bound. */ + assert(desc->image_view->n_planes == 1); struct anv_surface_state sstate = (desc->layout == VK_IMAGE_LAYOUT_GENERAL) ? - desc->image_view->planes[binding->plane].general_sampler_surface_state : - desc->image_view->planes[binding->plane].optimal_sampler_surface_state; + desc->image_view->planes[0].general_sampler_surface_state : + desc->image_view->planes[0].optimal_sampler_surface_state; surface_state = sstate.state; assert(surface_state.alloc_size); if (need_client_mem_relocs) -- 2.30.2