zink: Enable GL_EXT_depth_bounds_test
authorAdam Jackson <ajax@redhat.com>
Tue, 2 Mar 2021 17:28:04 +0000 (12:28 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Mar 2021 16:17:11 +0000 (16:17 +0000)
Available since Vulkan 1.0, and in fact already wired up, just not
advertised. It looks like we could make this dynamic state but this
works for now.

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

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

index ff0eb56..f6f5f90 100644 (file)
@@ -319,7 +319,7 @@ Khronos, ARB, and OES extensions that are not part of any OpenGL or OpenGL ES ve
   GL_ARB_sparse_texture_clamp                           not started
   GL_ARB_texture_filter_minmax                          not started
   GL_EXT_color_buffer_half_float                        DONE (gallium drivers supporting required formats)
-  GL_EXT_depth_bounds_test                              DONE (i965/gen12+, nv50, nvc0, radeonsi, softpipe, swr)
+  GL_EXT_depth_bounds_test                              DONE (i965/gen12+, nv50, nvc0, radeonsi, softpipe, swr, zink)
   GL_EXT_memory_object                                  DONE (radeonsi)
   GL_EXT_memory_object_fd                               DONE (radeonsi)
   GL_EXT_memory_object_win32                            not started
index 08f59dc..ce5ef61 100644 (file)
@@ -17,4 +17,4 @@ VK_KHR_workgroup_memory_explicit_layout on Intel, RADV
 DRM format modifiers for AMD.
 VK_KHR_zero_initialize_workgroup_memory on Intel, RADV
 Zink exposes GL 4.6 and ES 3.1
-GL_EXT_depth_bounds_test on softpipe
+GL_EXT_depth_bounds_test on softpipe, zink
index 38101f8..948a1eb 100644 (file)
@@ -484,6 +484,9 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_DMABUF:
       return screen->info.have_KHR_external_memory_fd;
 
+   case PIPE_CAP_DEPTH_BOUNDS_TEST:
+      return screen->info.feats.features.depthBounds;
+
    default:
       return u_pipe_screen_get_param_defaults(pscreen, param);
    }