mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
anv: 3D stencil surfaces have fewer layers for higher miplevels
Signed-off-by: Rohan Garg <rohan.garg@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28646>
This commit is contained in:
parent
1829d74ad3
commit
309c228bb7
1 changed files with 4 additions and 0 deletions
|
|
@ -598,6 +598,10 @@ transition_stencil_buffer(struct anv_cmd_buffer *cmd_buffer,
|
|||
|
||||
uint32_t aux_layers =
|
||||
anv_image_aux_layers(image, VK_IMAGE_ASPECT_STENCIL_BIT, level);
|
||||
|
||||
if (base_layer >= aux_layers)
|
||||
break; /* We will only get fewer layers as level increases */
|
||||
|
||||
uint32_t level_layer_count =
|
||||
MIN2(layer_count, aux_layers - base_layer);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue