summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-05-24 13:43:33 -0500
committerTim Rowley <[email protected]>2017-05-30 17:22:08 -0500
commitac9d7c3d33070ca3ae2cbe482e1766ba7198d44a (patch)
tree4e21764345b762158ad145ad53ab606a3cb5dfdc /src/gallium/drivers/swr/rasterizer
parente9e999ae322cb625bbd97d2b83b9c8fc2f478803 (diff)
swr/rast: code cleanup (no functional change)
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/clip.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/clip.h b/src/gallium/drivers/swr/rasterizer/core/clip.h
index ad2745b069b..3e8ea33b21b 100644
--- a/src/gallium/drivers/swr/rasterizer/core/clip.h
+++ b/src/gallium/drivers/swr/rasterizer/core/clip.h
@@ -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;
};