Mesa (master): swr/rast: Properly size GS stage scratch space

Tim Rowley torowley at kemper.freedesktop.org
Fri Jun 16 21:30:05 UTC 2017


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

Author: Tim Rowley <timothy.o.rowley at intel.com>
Date:   Thu Jun  8 11:48:37 2017 -0500

swr/rast: Properly size GS stage scratch space

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

---

 src/gallium/drivers/swr/rasterizer/core/frontend.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
index 902253b148..c11a35acd4 100644
--- a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
@@ -787,7 +787,7 @@ static void GeometryShaderStage(
     tlsGsContext.PrimitiveID = primID;
 
     uint32_t numVertsPerPrim = NumVertsPerPrim(pa.binTopology, true);
-    simdvector attrib[MAX_ATTRIBUTES];
+    simdvector attrib[MAX_NUM_VERTS_PER_PRIM];
 
     // assemble all attributes for the input primitive
     for (uint32_t slot = 0; slot < pState->numInputAttribs; ++slot)




More information about the mesa-commit mailing list