anv: Input attachments are always single-plane

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
Jason Ekstrand 2019-10-31 16:57:29 -05:00
parent 0a02f2a278
commit fa120cb31c

View file

@ -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)