anv: Input attachments are always single-plane
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user