anv: Replace one more aux_surface.isl.size_B check
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 28 Jan 2020 04:10:36 +0000 (22:10 -0600)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Jan 2020 18:15:29 +0000 (18:15 +0000)
This one was missed in 41bffe09135.

Fixes: 41bffe09135 "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>

src/intel/vulkan/genX_cmd_buffer.c

index ddc5494e79ff8cfe5be2e926829560e90f14aeec..dbee676741457f9d04034526d3226f5210b2a6cc 100644 (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 =