Mesa (master): swr/rast: Use binner topology to assemble backend attributes

George Kyriazis gkyriazis at kemper.freedesktop.org
Fri May 11 16:28:42 UTC 2018


Module: Mesa
Branch: master
Commit: 70f0a28b83d9977e106f80cfd033e0796bc43f2f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=70f0a28b83d9977e106f80cfd033e0796bc43f2f

Author: George Kyriazis <george.kyriazis at intel.com>
Date:   Thu Apr 26 16:12:24 2018 -0500

swr/rast: Use binner topology to assemble backend attributes

Previously was using the draw topology, which may change if GS or Tess
are active. Only affected attributes marked with constant interpolation,
which limited the impact.

Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>

---

 src/gallium/drivers/swr/rasterizer/core/binner.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/core/binner.cpp b/src/gallium/drivers/swr/rasterizer/core/binner.cpp
index 9f8dc887aa..7b9c20ef80 100644
--- a/src/gallium/drivers/swr/rasterizer/core/binner.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/binner.cpp
@@ -81,7 +81,7 @@ INLINE void ProcessAttributes(
     // Conservative Rasterization requires degenerate tris to have constant attribute interpolation
     uint32_t constantInterpMask = IsDegenerate::value ? 0xFFFFFFFF : backendState.constantInterpolationMask;
     const uint32_t provokingVertex = pDC->pState->state.frontendState.topologyProvokingVertex;
-    const PRIMITIVE_TOPOLOGY topo = pDC->pState->state.topology;
+    const PRIMITIVE_TOPOLOGY topo = pa.binTopology;
 
     static const float constTable[3][4] = {
         { 0.0f, 0.0f, 0.0f, 0.0f },




More information about the mesa-commit mailing list