anv: Replace one more aux_surface.isl.size_B check

This one was missed in 41bffe0913.

Fixes: 41bffe0913 "anv: Replace aux_surface.isl.size_B checks with..."
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3593>
This commit is contained in:
Jason Ekstrand
2020-01-27 22:10:36 -06:00
committed by Marge Bot
parent f229579c0a
commit 06657e1dda
+1 -1
View File
@@ -522,7 +522,7 @@ transition_depth_buffer(struct anv_cmd_buffer *cmd_buffer,
{
uint32_t depth_plane =
anv_image_aspect_to_plane(image->aspects, VK_IMAGE_ASPECT_DEPTH_BIT);
if (image->planes[depth_plane].aux_surface.isl.size_B == 0)
if (image->planes[depth_plane].aux_usage == ISL_AUX_USAGE_NONE)
return;
const enum isl_aux_state initial_state =