From a8afd296537a0e61fd12c817c3003309346a5e75 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 4 Mar 2016 00:02:18 -0800 Subject: anv/pipeline: Use the right provoking vertex for triangle fans --- src/intel/vulkan/gen7_pipeline.c | 4 ++-- src/intel/vulkan/gen8_pipeline.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c index c114bfef3ac..22a892bba3a 100644 --- a/src/intel/vulkan/gen7_pipeline.c +++ b/src/intel/vulkan/gen7_pipeline.c @@ -61,7 +61,7 @@ gen7_emit_rs_state(struct anv_pipeline *pipeline, .TriangleStripListProvokingVertexSelect = 0, .LineStripListProvokingVertexSelect = 0, - .TriangleFanProvokingVertexSelect = 0, + .TriangleFanProvokingVertexSelect = 1, /* uint32_t AALineDistanceMode; */ /* uint32_t VertexSubPixelPrecisionSelect; */ @@ -230,7 +230,7 @@ genX(graphics_pipeline_create)( .ClipMode = CLIPMODE_NORMAL, .TriangleStripListProvokingVertexSelect = 0, .LineStripListProvokingVertexSelect = 0, - .TriangleFanProvokingVertexSelect = 0, + .TriangleFanProvokingVertexSelect = 1, .MinimumPointWidth = 0.125, .MaximumPointWidth = 255.875, .MaximumVPIndex = pCreateInfo->pViewportState->viewportCount - 1); diff --git a/src/intel/vulkan/gen8_pipeline.c b/src/intel/vulkan/gen8_pipeline.c index a464006566b..52629a73342 100644 --- a/src/intel/vulkan/gen8_pipeline.c +++ b/src/intel/vulkan/gen8_pipeline.c @@ -59,7 +59,7 @@ emit_rs_state(struct anv_pipeline *pipeline, .ViewportTransformEnable = !(extra && extra->disable_viewport), .TriangleStripListProvokingVertexSelect = 0, .LineStripListProvokingVertexSelect = 0, - .TriangleFanProvokingVertexSelect = 0, + .TriangleFanProvokingVertexSelect = 1, .PointWidthSource = pipeline->writes_point_size ? Vertex : State, .PointWidth = 1.0, }; -- cgit v1.2.3