swr/rast: Properly size GS stage scratch space
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 8 Jun 2017 16:48:37 +0000 (11:48 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 16 Jun 2017 21:20:16 +0000 (16:20 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/frontend.cpp

index 902253b1481b2875f8c39aa4bee01f50e29eed70..c11a35acd407d160a1ae60225fbfe2317b3ca45e 100644 (file)
@@ -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)