u_vbuf_mgr: correctly compute max vertex count from hw buffers
authorMarek Olšák <maraeo@gmail.com>
Sun, 20 Nov 2011 02:58:34 +0000 (03:58 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sun, 20 Nov 2011 15:24:12 +0000 (16:24 +0100)
commit03df791c6f0881e45a65106c22ccd28f77018fb3
treeb7ada8008fc05f4c4fe3820085f5afde9df33d06
parent72e1117e489986783dd5b27a3ad781b86c2d5d67
u_vbuf_mgr: correctly compute max vertex count from hw buffers

And update r300g.

This is different from util_draw_max_index in how it obtains vertex elements
and that it doesn't have to call util_format_description due to additional
precomputed data in vertex elements.
src/gallium/auxiliary/util/u_vbuf_mgr.c
src/gallium/auxiliary/util/u_vbuf_mgr.h
src/gallium/drivers/r300/r300_render.c