diff options
author | Erik Faye-Lund <[email protected]> | 2020-02-03 17:42:04 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-08 14:43:02 +0000 |
commit | 44da0f067ca0fa9c4eabe06685df157665ffb508 (patch) | |
tree | 93bcd5ede0f47464f7fcaa1f99fe8e00d44d6ef7 /src/gallium/drivers | |
parent | ffb8020f6e7ae3fb89d5b5ab17ff6fbdc6798ac4 (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5495>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/zink/zink_screen.c | 4 |
1 files changed, 1 insertions, 3 deletions
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: |