From 69f3d3a29fc9da4f72c596110314ce21639d9cc7 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 2 Mar 2021 12:28:04 -0500 Subject: [PATCH] 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: --- docs/features.txt | 2 +- docs/relnotes/new_features.txt | 2 +- src/gallium/drivers/zink/zink_screen.c | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/features.txt b/docs/features.txt index ff0eb56c8b6..f6f5f90bb0b 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 08f59dc2b16..ce5ef618463 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 38101f8ca18..948a1ebd620 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); }