draw: correctly handle max_index=0xffffffff case in vcache code
authorBrian Paul <brianp@vmware.com>
Tue, 20 Jul 2010 17:46:43 +0000 (11:46 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 20 Jul 2010 17:53:43 +0000 (11:53 -0600)
commit691c1fb074144395aa441b3102923d8f92136c37
treec62e98176c14aafdf1fd2b301cd7048cbc7d875d
parente794fac35a9639d87a4ebd785e1e6b84490090ef
draw: correctly handle max_index=0xffffffff case in vcache code

If max_index=0xffffffff and elt_bias > 0 the test for
elt_bias + max_index >= DRAW_PIPE_MAX_VERTICES
was wrong.  Check earlier if max_index=0xffffffff and do the
"fail" case.

This fixes the piglit draw-elements-base-vertex test (and probably
some other things).
src/gallium/auxiliary/draw/draw_pt_vcache.c