From 5df4d987806fc14fc614a7f0bb110bb1939d7580 Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Wed, 31 Jan 2018 17:07:59 -0600 Subject: [PATCH] swr/rast: Fix invalid number of attributes Fix invalid number of attributes passed into tesselation PA. Needs to take into account any offsets from the shader. Innocuous issue, but removes an assert firing in debug. Reviewed-by: Bruce Cherniak --- 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 c44dd2c2da0..33533af630a 100644 --- a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp @@ -1334,7 +1334,7 @@ static void TessellationStages( dsContext.vectorStride, #endif SWR_VTX_NUM_SLOTS, - tsState.numDsOutputAttribs, + tsState.numDsOutputAttribs + tsState.dsOutVtxAttribOffset, tsData.ppIndices, tsData.NumPrimitives, tsState.postDSTopology, -- 2.30.2