From 4a757d6c31563fd92d7cfb4ab2e8e7b3ad62014c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 19 Jun 2019 16:04:54 -0500 Subject: anv: Enable the guardband clip test In workloads where there is a lot of geometry drawn that crosses over the edge of the viewport, this should substantially improve clipper performance. Not really sure why it's taken 3 years to turn it on but we never got around to it. Reviewed-by: Kenneth Graunke Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/genX_pipeline.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/intel/vulkan/genX_pipeline.c') diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 6b64f7ea8c7..e35bb5e3405 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1077,6 +1077,7 @@ emit_3dstate_clip(struct anv_pipeline *pipeline, clip.EarlyCullEnable = true; clip.APIMode = APIMODE_D3D, clip.ViewportXYClipTestEnable = true; + clip.GuardbandClipTestEnable = true; #if GEN_GEN >= 8 clip.VertexSubPixelPrecisionSelect = _8Bit; -- cgit v1.2.3