From: Jason Ekstrand Date: Tue, 28 Jan 2020 04:10:36 +0000 (-0600) Subject: anv: Replace one more aux_surface.isl.size_B check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06657e1ddaa96f1e70aa499f244daff0ae1db571;p=mesa.git 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: --- 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 =