Mesa (staging/22.0): blorp: disable depth bounds

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 21 18:03:05 UTC 2022


Module: Mesa
Branch: staging/22.0
Commit: 6ffa3bd3c96c01895574175fac07f658858f11c5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ffa3bd3c96c01895574175fac07f658858f11c5

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Wed Apr  6 11:50:13 2022 +0300

blorp: disable depth bounds

Otherwise the driver setting interacts with it.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: 939ddccb7a54 ("anv: Add support for depth bounds testing.")
Fixes: 1df871f8ff75 ("iris: Add support for depth bounds testing.")
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15763>
(cherry picked from commit 56ef501e3aa4b12f41c0520bbc5fa920b0efa0f8)

Conflicts:
	src/intel/ci/anv-tgl-fails.txt

---

 .pick_status.json                 | 2 +-
 src/intel/blorp/blorp_genX_exec.h | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/.pick_status.json b/.pick_status.json
index 725fdcac0b7..3798f7658e7 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -5260,7 +5260,7 @@
         "description": "blorp: disable depth bounds",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 5,
+        "resolution": 1,
         "because_sha": "939ddccb7a541259957e883d2c9dedbe4df265ad"
     },
     {
diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h
index a19659c68be..83b4d7dd170 100644
--- a/src/intel/blorp/blorp_genX_exec.h
+++ b/src/intel/blorp/blorp_genX_exec.h
@@ -1239,6 +1239,14 @@ blorp_emit_depth_stencil_state(struct blorp_batch *batch,
    }
 #endif
 
+#if GFX_VER >= 12
+   blorp_emit(batch, GENX(3DSTATE_DEPTH_BOUNDS), db) {
+      db.DepthBoundsTestEnable = false;
+      db.DepthBoundsTestMinValue = 0.0;
+      db.DepthBoundsTestMaxValue = 1.0;
+   }
+#endif
+
    return offset;
 }
 



More information about the mesa-commit mailing list