From 5188e54e97f722bc6c1d6f9a01d03188cc56afc0 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 26 Jun 2018 10:02:46 -0700 Subject: [PATCH] iris: fix provoking vertex ordering had this backwards --- src/gallium/drivers/iris/iris_state.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.30.2