Mesa (master): swr/rast: update guardband rects at draw setup

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 30 19:56:00 UTC 2019


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

Author: Alok Hota <alok.hota at intel.com>
Date:   Wed Jun 13 15:14:16 2018 -0500

swr/rast: update guardband rects at draw setup

It's dependent on other state fields

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

---

 src/gallium/drivers/swr/rasterizer/core/api.cpp | 5 +++--
 1 file 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);
 }
 
 //////////////////////////////////////////////////////////////////////////




More information about the mesa-commit mailing list