anv: Get aux usage from plane while clearing stencil buffer
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2942>
This commit is contained in:
parent
c76ebc0c7a
commit
d34ab5071a
|
@ -1830,10 +1830,12 @@ anv_image_clear_depth_stencil(struct anv_cmd_buffer *cmd_buffer,
|
|||
|
||||
struct blorp_surf stencil = {};
|
||||
if (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) {
|
||||
uint32_t plane = anv_image_aspect_to_plane(image->aspects,
|
||||
VK_IMAGE_ASPECT_STENCIL_BIT);
|
||||
get_blorp_surf_for_anv_image(cmd_buffer->device,
|
||||
image, VK_IMAGE_ASPECT_STENCIL_BIT,
|
||||
0, ANV_IMAGE_LAYOUT_EXPLICIT_AUX,
|
||||
ISL_AUX_USAGE_NONE, &stencil);
|
||||
image->planes[plane].aux_usage, &stencil);
|
||||
}
|
||||
|
||||
/* Blorp may choose to clear stencil using RGBA32_UINT for better
|
||||
|
|
Loading…
Reference in New Issue