summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2018-01-31 17:07:59 -0600
committerGeorge Kyriazis <[email protected]>2018-02-16 10:53:59 -0600
commit5df4d987806fc14fc614a7f0bb110bb1939d7580 (patch)
treeaf34f0fbf91b320d0c4cc14d65ed7c69b30db5f9 /src/gallium/drivers/swr/rasterizer
parent205347272369f554ab274e3ec62002ecdcc7f3c0 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/frontend.cpp2
1 files changed, 1 insertions, 1 deletions
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,