Mesa (main): zink: fix-ish depth clipping without VK_EXT_depth_clip_enable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 24 20:08:34 UTC 2022


Module: Mesa
Branch: main
Commit: 8f57818ce544d4f29c0ec65a168a7d4d46370419
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f57818ce544d4f29c0ec65a168a7d4d46370419

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Jun 24 12:01:06 2022 -0400

zink: fix-ish depth clipping without VK_EXT_depth_clip_enable

if this extension is unsupported, use the previous behavior and hope for the best

Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17237>

---

 src/gallium/drivers/zink/zink_pipeline.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_pipeline.c b/src/gallium/drivers/zink/zink_pipeline.c
index a4f78b4eaec..6c561a0981c 100644
--- a/src/gallium/drivers/zink/zink_pipeline.c
+++ b/src/gallium/drivers/zink/zink_pipeline.c
@@ -191,6 +191,7 @@ zink_create_gfx_pipeline(struct zink_screen *screen,
    } else {
       static bool warned = false;
       warn_missing_feature(warned, "VK_EXT_depth_clip_enable");
+      rast_state.depthClampEnable = !hw_rast_state->depth_clip;
    }
 
    VkPipelineRasterizationProvokingVertexStateCreateInfoEXT pv_state;



More information about the mesa-commit mailing list