st/mesa: fix max_offset computation for base vertex
authorBrian Paul <brianp@vmware.com>
Mon, 2 Apr 2012 18:05:16 +0000 (20:05 +0200)
committerBrian Paul <brianp@vmware.com>
Fri, 6 Apr 2012 20:18:53 +0000 (14:18 -0600)
commit299c9052e832712654865af8dbd0ed4bf055d124
treeaa0308e2254a01a38dbb64af8f79d09efa8f55ad
parentecc480524bf56076e05291529f65dc996114aa90
st/mesa: fix max_offset computation for base vertex

Add the maximum base vertex offset to max_index for computing the
buffer size.  Fixes a failed assertion in the u_upload_mgr.c code with
the VMware svga driver.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=48141

v2: incorporate Marek's suggestions.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/mesa/state_tracker/st_draw.c