aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/core')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/api.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/api.cpp b/src/gallium/drivers/swr/rasterizer/core/api.cpp
index e260c951078..04eabc4d468 100644
--- a/src/gallium/drivers/swr/rasterizer/core/api.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/api.cpp
@@ -740,8 +740,6 @@ void SwrSetViewports(HANDLE hContext,
memcpy(&pState->vp[0], pViewports, sizeof(SWR_VIEWPORT) * numViewports);
// @todo Faster to copy portions of the SOA or just copy all of it?
memcpy(&pState->vpMatrices, pMatrices, sizeof(SWR_VIEWPORT_MATRICES));
-
- updateGuardbands(pState);
}
void SwrSetScissorRects(HANDLE hContext, uint32_t numScissors, const SWR_RECT* pScissors)
@@ -1050,6 +1048,9 @@ void SetupPipeline(DRAW_CONTEXT* pDC)
// set up pass-through quantize if depth isn't enabled
pState->state.pfnQuantizeDepth = QuantizeDepth<R32_FLOAT>;
}
+
+ // Generate guardbands
+ updateGuardbands(&pState->state);
}
//////////////////////////////////////////////////////////////////////////