OSDN Git Service

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 c114bfe..22a892b 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 a464006..52629a7 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,
    };