mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
anv: Input attachments are always single-plane
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
0a02f2a278
commit
fa120cb31c
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue