Mesa (master): anv: Replace one more aux_surface.isl.size_B check

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 28 18:33:36 UTC 2020


Module: Mesa
Branch: master
Commit: 06657e1ddaa96f1e70aa499f244daff0ae1db571
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=06657e1ddaa96f1e70aa499f244daff0ae1db571

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Mon Jan 27 22:10:36 2020 -0600

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 <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3593>

---

 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 =



More information about the mesa-commit mailing list