Mesa (main): anv: Allow HIZ_CCS_WT with subpass self-dependencies

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 12 19:00:36 UTC 2021


Module: Mesa
Branch: main
Commit: 81e9c25c1bf64c78882eb686a044ec63e8d1d11b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=81e9c25c1bf64c78882eb686a044ec63e8d1d11b

Author: Nanley Chery <nanley.g.chery at intel.com>
Date:   Tue Oct  5 12:02:23 2021 -0700

anv: Allow HIZ_CCS_WT with subpass self-dependencies

This unblocks later commits that aim to align the driver with the tile
cache flushing requirements in the Bspec.

Reviewed-by: Felix DeGrood <felix.j.degrood at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11539>

---

 src/intel/vulkan/anv_image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 99050a1ce34..a2fb47fe315 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -2053,7 +2053,7 @@ anv_layout_to_aux_state(const struct intel_device_info * const devinfo,
        *
        * TODO: Should we be disabling this in more cases?
        */
-      if (aspect == VK_IMAGE_ASPECT_DEPTH_BIT) {
+      if (aspect == VK_IMAGE_ASPECT_DEPTH_BIT && devinfo->ver <= 9) {
          aux_supported = false;
          clear_supported = false;
       }



More information about the mesa-commit mailing list