From: Kenneth Graunke Date: Mon, 18 Jul 2016 20:52:07 +0000 (-0700) Subject: anv: Enable early culling on Gen7. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44502afd8219c298fafa39625a178713c912d975;p=mesa.git anv: Enable early culling on Gen7. We set the cull mode, but forgot the enable bit. Gen8 uses this. Cc: "12.0" Signed-off-by: Kenneth Graunke Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c index a50d9c70900..a9f5e0b51e5 100644 --- a/src/intel/vulkan/gen7_pipeline.c +++ b/src/intel/vulkan/gen7_pipeline.c @@ -122,6 +122,7 @@ genX(graphics_pipeline_create)( anv_batch_emit(&pipeline->batch, GENX(3DSTATE_CLIP), clip) { clip.FrontWinding = vk_to_gen_front_face[rs_info->frontFace], + clip.EarlyCullEnable = true, clip.CullMode = vk_to_gen_cullmode[rs_info->cullMode], clip.ClipEnable = !(extra && extra->use_rectlist), clip.APIMode = APIMODE_D3D,