Module: Mesa
Branch: vulkan
Commit: a8afd296537a0e61fd12c817c3003309346a5e75
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8afd296537a0e61fd12c817c3003309346a5e75

Author: Jason Ekstrand <[email protected]>
Date:   Fri Mar  4 00:02:18 2016 -0800

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

---

 src/intel/vulkan/gen7_pipeline.c | 4 ++--
 src/intel/vulkan/gen8_pipeline.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c
index c114bfe..22a892b 100644
--- a/src/intel/vulkan/gen7_pipeline.c
+++ b/src/intel/vulkan/gen7_pipeline.c
@@ -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);
diff --git a/src/intel/vulkan/gen8_pipeline.c b/src/intel/vulkan/gen8_pipeline.c
index a464006..52629a7 100644
--- a/src/intel/vulkan/gen8_pipeline.c
+++ b/src/intel/vulkan/gen8_pipeline.c
@@ -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,
    };

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to