Mesa (main): zink: add a turnip driver workaround for EXT_depth_clip_enable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 24 20:08:34 UTC 2022


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Jun 24 12:02:21 2022 -0400

zink: add a turnip driver workaround for EXT_depth_clip_enable

this is broken

ref #6732

Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17237>

---

 src/gallium/drivers/zink/zink_screen.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 538a831729b..6d47b67cab3 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -2085,9 +2085,12 @@ init_driver_workarounds(struct zink_screen *screen)
    if (screen->info.driver_props.driverID == VK_DRIVER_ID_AMD_PROPRIETARY)
       /* this completely breaks xfb somehow */
       screen->info.have_EXT_extended_dynamic_state2 = false;
-   /* #6602 */
-   if (screen->info.driver_props.driverID == VK_DRIVER_ID_MESA_TURNIP)
+   if (screen->info.driver_props.driverID == VK_DRIVER_ID_MESA_TURNIP) {
+      /* #6602 */
       screen->info.have_EXT_primitives_generated_query = false;
+      /* #6732 */
+      screen->info.have_EXT_depth_clip_enable = false;
+   }
 }
 
 static struct zink_screen *



More information about the mesa-commit mailing list