mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
r600: be more exact in vb size calculation
to make kernel cs checker happier, last attribs don't need full stride of space. Calculate as count-1*stride + size of attrib
This commit is contained in:
parent
841333cd21
commit
0426bccadd
1 changed files with 2 additions and 1 deletions
|
|
@ -176,7 +176,8 @@ static void r700SetupVTXConstants(GLcontext * ctx,
|
|||
}
|
||||
else
|
||||
{
|
||||
nVBsize = paos->count * pStreamDesc->stride;
|
||||
nVBsize = (paos->count - 1) * pStreamDesc->stride
|
||||
+ pStreamDesc->size * getTypeSize(pStreamDesc->type);
|
||||
}
|
||||
|
||||
uSQ_VTX_CONSTANT_WORD0_0 = paos->offset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue