[Mesa-dev] [PATCH 4/8] anv: Enable early culling on Gen7.
Kenneth Graunke
kenneth at whitecape.org
Tue Jul 19 01:04:23 UTC 2016
We set the cull mode, but forgot the enable bit. Gen8 uses this.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/intel/vulkan/gen7_pipeline.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c
index a50d9c7..a9f5e0b 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,
--
2.9.0
More information about the mesa-dev
mailing list