From: Kenneth Graunke Date: Tue, 26 Jun 2018 17:02:46 +0000 (-0700) Subject: iris: fix provoking vertex ordering X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5188e54e97f722bc6c1d6f9a01d03188cc56afc0;p=mesa.git iris: fix provoking vertex ordering had this backwards --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index aeac332f024..ac85817747b 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -627,11 +627,11 @@ iris_create_rasterizer_state(struct pipe_context *ctx, sf.PointWidth = state->point_size; if (state->flatshade_first) { + sf.TriangleFanProvokingVertexSelect = 1; + } else { sf.TriangleStripListProvokingVertexSelect = 2; sf.TriangleFanProvokingVertexSelect = 2; sf.LineStripListProvokingVertexSelect = 1; - } else { - sf.TriangleFanProvokingVertexSelect = 1; } } @@ -672,11 +672,11 @@ iris_create_rasterizer_state(struct pipe_context *ctx, cl.MaximumPointWidth = 255.875; if (state->flatshade_first) { + cl.TriangleFanProvokingVertexSelect = 1; + } else { cl.TriangleStripListProvokingVertexSelect = 2; cl.TriangleFanProvokingVertexSelect = 2; cl.LineStripListProvokingVertexSelect = 1; - } else { - cl.TriangleFanProvokingVertexSelect = 1; } }