anv/pipeline: Use the right provoking vertex for triangle fans

This commit is contained in:
Jason Ekstrand 2016-03-04 00:02:18 -08:00
parent fa8539dd6b
commit a8afd29653
2 changed files with 3 additions and 3 deletions

View 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);

View 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,
};