From: Tim Rowley Date: Thu, 8 Jun 2017 16:48:37 +0000 (-0500) Subject: swr/rast: Properly size GS stage scratch space X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21baadfe58abe5b7bbedcf59a831993560c73d50;p=mesa.git swr/rast: Properly size GS stage scratch space Reviewed-by: Bruce Cherniak --- diff --git a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp index 902253b1481..c11a35acd40 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)