diff options
author | Vadym Shovkoplias <vadym.shovkoplias@globallogic.com> | 2022-03-24 09:34:25 +0200 |
---|---|---|
committer | Vadym Shovkoplias <vadym.shovkoplias@globallogic.com> | 2022-04-06 13:26:52 +0300 |
commit | 04a66938717956f2312feb80082861c10bc13267 (patch) | |
tree | 69d7cd5287b474279fa2bfca3930d2336ee6c3ef /src/intel/vulkan/genX_pipeline.c | |
parent | 6c186021640928496392401dea83a2cb71e17997 (diff) |
anv: fix EXT_depth_clip_control
This fixes arb_clip_control-clip-control and depth_clamp piglit
tests on zink.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6186
Signed-off-by: Vadym Shovkoplias <vadym.shovkoplias@globallogic.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15561>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r-- | src/intel/vulkan/genX_pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index bc0157dbec5..38a0394a9de 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1554,7 +1554,7 @@ emit_3dstate_clip(struct anv_graphics_pipeline *pipeline, clip.ClipEnable = true; clip.StatisticsEnable = true; clip.EarlyCullEnable = true; - clip.APIMode = APIMODE_D3D; + clip.APIMode = pipeline->negative_one_to_one ? APIMODE_OGL : APIMODE_D3D; clip.GuardbandClipTestEnable = true; /* Only enable the XY clip test when the final polygon rasterization |