summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-05-04 15:04:39 -0600
committerTim Rowley <[email protected]>2016-05-19 16:25:54 -0500
commita0747c4ce3b0dd89fbaa7f4dc4237df4ea7a97e3 (patch)
treee20543b4e87e0b1e086dd9f98b20d4f9bbca8680 /src
parentf2a1f894ba3af9299c9a1e770ef25247a6690637 (diff)
swr: [rasterizer core] move variable query outside loop
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/frontend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
index c13280e455b..6bb9b1200de 100644
--- a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
@@ -1575,6 +1575,7 @@ void BinTriangles(
const SWR_RASTSTATE& rastState = state.rastState;
const SWR_FRONTEND_STATE& feState = state.frontendState;
const SWR_GS_STATE& gsState = state.gsState;
+ MacroTileMgr *pTileMgr = pDC->pTileMgr;
// Simple wireframe mode for debugging purposes only
@@ -1783,6 +1784,7 @@ void BinTriangles(
_simd_store_si((simdscalari*)aRTAI, _simd_setzero_si());
}
+
// scan remaining valid triangles and bin each separately
while (_BitScanForward(&triIndex, triMask))
{
@@ -1835,7 +1837,6 @@ void BinTriangles(
ProcessUserClipDist<3>(pa, triIndex, rastState.clipDistanceMask, desc.pUserClipBuffer);
}
- MacroTileMgr *pTileMgr = pDC->pTileMgr;
for (uint32_t y = aMTTop[triIndex]; y <= aMTBottom[triIndex]; ++y)
{
for (uint32_t x = aMTLeft[triIndex]; x <= aMTRight[triIndex]; ++x)