From: Adam Jackson Date: Tue, 2 Mar 2021 17:28:04 +0000 (-0500) Subject: zink: Enable GL_EXT_depth_bounds_test X-Git-Tag: upstream/21.2.3~7022 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69f3d3a29fc9da4f72c596110314ce21639d9cc7;p=platform%2Fupstream%2Fmesa.git zink: Enable GL_EXT_depth_bounds_test 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 Part-of: --- diff --git a/docs/features.txt b/docs/features.txt index ff0eb56..f6f5f90 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -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 diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index 08f59dc..ce5ef61 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -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 diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 38101f8..948a1eb 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -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); }