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

Author: Sagar Ghuge <[email protected]>
Date:   Wed Aug 16 11:40:11 2023 -0700

intel/isl: Enable INTEL_DEBUG=noccs/nohiz in ISL helpers

Let's enable INTEL_DEBUG=noccs in isl_surf_supports_ccs helper and
INTEL_DEBUG=nohiz in isl_surf_get_hiz_surf helper.

Signed-off-by: Sagar Ghuge <[email protected]>
Reviewed-by: Nanley Chery <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24731>

---

 src/intel/isl/isl.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index 9b42001cf18..6fc4b212904 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -2248,6 +2248,9 @@ isl_surf_get_hiz_surf(const struct isl_device *dev,
                       const struct isl_surf *surf,
                       struct isl_surf *hiz_surf)
 {
+   if (INTEL_DEBUG(DEBUG_NO_HIZ))
+      return false;
+
    /* HiZ support does not exist prior to Gfx5 */
    if (ISL_GFX_VER(dev) < 5)
       return false;
@@ -2366,6 +2369,9 @@ isl_surf_supports_ccs(const struct isl_device *dev,
                       const struct isl_surf *surf,
                       const struct isl_surf *hiz_or_mcs_surf)
 {
+   if (INTEL_DEBUG(DEBUG_NO_CCS))
+      return false;
+
    if (surf->usage & ISL_SURF_USAGE_DISABLE_AUX_BIT)
       return false;
 

Reply via email to