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

Author: Tim Rowley <timothy.o.row...@intel.com>
Date:   Mon Oct 23 15:10:35 2017 -0500

swr/rast: Code style change (NFC)

Reviewed-by: Bruce Cherniak <bruce.chern...@intel.com>

---

 src/gallium/drivers/swr/rasterizer/core/frontend.cpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp 
b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
index e15b300979..2fe6cfcf69 100644
--- a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
@@ -39,6 +39,7 @@
 #include "tilemgr.h"
 #include "tessellator.h"
 #include <limits>
+#include <iostream>
 
 //////////////////////////////////////////////////////////////////////////
 /// @brief Helper macro to generate a bitmask
@@ -770,6 +771,7 @@ void TransposeSOAtoAOS(uint8_t* pDst, uint8_t* pSrc, 
uint32_t numVerts, uint32_t
     }
 }
 
+
 //////////////////////////////////////////////////////////////////////////
 /// @brief Implements GS stage.
 /// @param pDC - pointer to draw context.
@@ -1335,8 +1337,11 @@ static void TessellationStages(
 
                     SWR_ASSERT(pfnClipFunc);
 #if USE_SIMD16_FRONTEND
-                    tessPa.useAlternateOffset = false;
-                    pfnClipFunc(pDC, tessPa, workerId, prim_simd16, 
GenMask(numPrims), primID);
+
+                    {
+                        tessPa.useAlternateOffset = false;
+                        pfnClipFunc(pDC, tessPa, workerId, prim_simd16, 
GenMask(numPrims), primID);
+                    }
 #else
                     pfnClipFunc(pDC, tessPa, workerId, prim,
                         GenMask(tessPa.NumPrims()), 
_simd_set1_epi32(dsContext.PrimitiveID));

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to