mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
swr/rast: Fix primitive replication issue in tesselation PA.
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
e12db47a7d
commit
48d62409f8
2 changed files with 3 additions and 2 deletions
|
|
@ -1338,7 +1338,7 @@ static void TessellationStages(
|
|||
tsData.ppIndices,
|
||||
tsData.NumPrimitives,
|
||||
tsState.postDSTopology,
|
||||
numVertsPerPrim);
|
||||
NumVertsPerPrim(tsState.postDSTopology, false));
|
||||
|
||||
while (tessPa.HasWork())
|
||||
{
|
||||
|
|
@ -1431,7 +1431,7 @@ static void TessellationStages(
|
|||
pfnClipFunc(pDC, tessPa, workerId, prim_simd16, GenMask(numPrims), primID, vViewportIdx, vRtIdx);
|
||||
}
|
||||
#else
|
||||
// Gather data from the SVG if provided.
|
||||
// Gather data from the SGV if provided.
|
||||
simdscalari vViewportIdx = SIMD::setzero_si();
|
||||
simdscalari vRtIdx = SIMD::setzero_si();
|
||||
SIMD::Vec4 svgAttrib[4];
|
||||
|
|
|
|||
|
|
@ -1330,6 +1330,7 @@ struct PA_TESS : PA_STATE
|
|||
SWR_ASSERT(slot < m_numAttributes);
|
||||
SWR_ASSERT(primIndex < PA_TESS::NumPrims());
|
||||
|
||||
|
||||
const float* pVertDataBase = (const float*)&m_pVertexData[slot * m_attributeStrideInVectors * 4];
|
||||
for (uint32_t i = 0; i < m_numVertsPerPrim; ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue