anv/pipeline: Use the right provoking vertex for triangle fans
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 4 Mar 2016 08:02:18 +0000 (00:02 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 4 Mar 2016 20:03:00 +0000 (12:03 -0800)
src/intel/vulkan/gen7_pipeline.c
src/intel/vulkan/gen8_pipeline.c

index c114bfef3ac77c335408ff4bb09488fa0f929383..22a892bba3a0859843965308a286cdb58948589f 100644 (file)
@@ -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);
index a464006566bdfa71e3a9959786aa97e3113199b6..52629a733420151abcdbedf4eda26cf99eeb2be3 100644 (file)
@@ -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,
    };