diff options
author | Andre Maasikas <[email protected]> | 2010-02-12 16:20:50 +0200 |
---|---|---|
committer | Andre Maasikas <[email protected]> | 2010-02-12 16:23:49 +0200 |
commit | 08545799e37d519d70006a86d52854d294ce5a4d (patch) | |
tree | 0b1fa11a3f2fd3e72f780160f6292e57dcfd45e8 /src/mesa/drivers | |
parent | eeb49d3ad82861272e8987515df3cc5da4ed2d09 (diff) |
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
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_chip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_chip.c b/src/mesa/drivers/dri/r600/r700_chip.c index a068cb60459..a742dbcf129 100644 --- a/src/mesa/drivers/dri/r600/r700_chip.c +++ b/src/mesa/drivers/dri/r600/r700_chip.c @@ -200,7 +200,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; |