From: Erik Faye-Lund Date: Mon, 3 Feb 2020 16:42:04 +0000 (+0100) Subject: zink: expose depth-clip if supported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44da0f067ca0fa9c4eabe06685df157665ffb508;p=mesa.git 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 Part-of: --- 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: