u_vbuf_mgr: fix max_index computation once again
authorMarek Olšák <maraeo@gmail.com>
Sat, 14 May 2011 17:25:55 +0000 (19:25 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 14 May 2011 18:03:03 +0000 (20:03 +0200)
commit51095f74cf92d3cada7366ce898ade7693570b48
tree6d6b118c2dbe000f69c941ecf97ef0c436e1888c
parentad2999d2113356d526b39774eb8114e974dac048
u_vbuf_mgr: fix max_index computation once again

See how I compute and use the 'unused' variable in the code.
It's crucial for getting max_index right.

Fixed with the help of apitrace.
(bisecting the problematic draw call manually was not fun though)

This should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=36268
https://bugs.freedesktop.org/show_bug.cgi?id=36609
src/gallium/auxiliary/util/u_vbuf_mgr.c