[Mesa-dev] [PATCH] vbo: count min/max_index before vbo->draw_prims

Eric Anholt eric at anholt.net
Sat Dec 24 16:03:21 PST 2011


On Thu, 22 Dec 2011 18:55:50 +0800, Yuanhan Liu <yuanhan.liu at linux.intel.com> wrote:
> For the case that index data is stored in element array buffer object,
> and user called glMultiDrawElements, count the min/max_index before
> calling vbo->draw_prims. vbo_get_minmax_index() isn't friendly to this
> case. So do it while building the prim info.
> 
> Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>

I'm really failing to understand what this commit is for.  Does it fix
some testcase?  Is it improving performance somewhere?  It appears to be
"unconditionally compute a total min/max index for a multiple-primitive
draw call", but I don't understand why we would unconditionally need
that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111224/87e3814f/attachment.pgp>


More information about the mesa-dev mailing list