From 06657e1ddaa96f1e70aa499f244daff0ae1db571 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 27 Jan 2020 22:10:36 -0600 Subject: [PATCH] anv: Replace one more aux_surface.isl.size_B check This one was missed in 41bffe09135. Fixes: 41bffe09135 "anv: Replace aux_surface.isl.size_B checks with..." Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/genX_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index ddc5494e79f..dbee6767414 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -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 = -- 2.30.2