summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-06-19 16:04:54 -0500
committerJason Ekstrand <[email protected]>2019-06-21 14:18:59 +0000
commit4a757d6c31563fd92d7cfb4ab2e8e7b3ad62014c (patch)
treee5ecdfb0cb6f0fde627c27d1de37777f11fa9ca3 /src/intel/vulkan/genX_pipeline.c
parent13f0c278c528167b14badf8172827412526d2160 (diff)
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 <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r--src/intel/vulkan/genX_pipeline.c1
1 files changed, 1 insertions, 0 deletions
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;