Mesa (master): zink: expose depth-clip if supported

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 8 14:50:38 UTC 2020


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Mon Feb  3 17:42:04 2020 +0100

zink: expose depth-clip if supported

We already set up the state as needed, so it should only be a matter of
exposing it.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5495>

---

 docs/features.txt                      | 2 +-
 src/gallium/drivers/zink/zink_screen.c | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/docs/features.txt b/docs/features.txt
index 33484576455..d788d8549c0 100644
--- a/docs/features.txt
+++ b/docs/features.txt
@@ -92,7 +92,7 @@ GL 3.2, GLSL 1.50 --- all DONE: i965, nv50, nvc0, r600, radeonsi, llvmpipe, soft
   GL_ARB_provoking_vertex (Provoking vertex)            DONE (freedreno, v3d)
   GL_ARB_seamless_cube_map (Seamless cubemaps)          DONE (freedreno, zink)
   GL_ARB_texture_multisample (Multisample textures)     DONE (freedreno/a5xx+, v3d, zink)
-  GL_ARB_depth_clamp (Frag depth clamp)                 DONE (freedreno)
+  GL_ARB_depth_clamp (Frag depth clamp)                 DONE (freedreno, zink)
   GL_ARB_sync (Fence objects)                           DONE (freedreno, v3d, zink)
   GLX_ARB_create_context_profile                        DONE
 
diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 36c89e68324..3c92e0e066f 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -148,10 +148,8 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS:
       return screen->props.limits.maxImageArrayLayers;
 
-#if 0 /* TODO: Enable me */
    case PIPE_CAP_DEPTH_CLIP_DISABLE:
-      return 0;
-#endif
+      return screen->feats.depthClamp;
 
    case PIPE_CAP_TGSI_INSTANCEID:
    case PIPE_CAP_MIXED_COLORBUFFER_FORMATS:



More information about the mesa-commit mailing list