swr/rast: code cleanup (no functional change)
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 24 May 2017 18:43:33 +0000 (13:43 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 30 May 2017 22:22:08 +0000 (17:22 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/clip.h

index ad2745b069b651db8b2d9bad16323ba64c81b15c..3e8ea33b21bf032e4ce8a4dbea5c2452d4c99c96 100644 (file)
@@ -947,8 +947,9 @@ public:
     // execute the clipper stage
     void ExecuteStage(PA_STATE& pa, simdvector prim[], uint32_t primMask, simdscalari primId, simdscalari viewportIdx)
     {
-        SWR_ASSERT(pa.pDC != nullptr);
-        SWR_CONTEXT* pContext = pa.pDC->pContext;
+        SWR_ASSERT(this->pDC != nullptr);
+        SWR_CONTEXT* pContext = this->pDC->pContext;
+        const API_STATE& apiState = this->pDC->pState->state;
 
         // set up binner based on PA state
         PFN_PROCESS_PRIMS pfnBinner;
@@ -965,7 +966,7 @@ public:
             pfnBinner = BinLines;
             break;
         default:
-            pfnBinner = GetBinTrianglesFunc((pa.pDC->pState->state.rastState.conservativeRast > 0));
+            pfnBinner = GetBinTrianglesFunc((apiState.rastState.conservativeRast > 0));
             break;
         };