svga: fix incorrect user buffer size computation
authorBrian Paul <brianp@vmware.com>
Wed, 15 Jun 2011 22:41:13 +0000 (16:41 -0600)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 1 Jul 2011 11:30:39 +0000 (13:30 +0200)
commitfa4bd302122c28ee00d77dcc36723fcd31656841
treec3d5a57060e53e1ff93035bad4e440e27915cf7c
parentbd00fb2c060d3d90be670a2f0bbd6f9c9fd2b4ae
svga: fix incorrect user buffer size computation

Viewperf uses some unusual vertex arrays where the stride is less
than the element size.  In this case, the stride was 4 while the
element size was 12.  The difference of 8 bytes causes us to miss
uploading the tail bit of the array data.

Typically the stride is >= the element size so there was no problem
with other apps.
src/gallium/drivers/svga/svga_pipe_draw.c