zink: expose depth-clip if supported
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 3 Feb 2020 16:42:04 +0000 (17:42 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Jul 2020 14:43:02 +0000 (14:43 +0000)
We already set up the state as needed, so it should only be a matter of
exposing it.

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

docs/features.txt
src/gallium/drivers/zink/zink_screen.c

index 33484576455d83d906846f90e159f140bb3778b8..d788d8549c016a7ed2f04b2d443aae2fa2462fe7 100644 (file)
@@ -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
 
index 36c89e68324843c5a4cf5b732b466bc060192a77..3c92e0e066f82663befa9b1e7823f08939c972b2 100644 (file)
@@ -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: