draw: check for instance divisors in vcache_check_run()
authorBrian Paul <brianp@vmware.com>
Tue, 3 Aug 2010 22:32:32 +0000 (16:32 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 3 Aug 2010 22:37:58 +0000 (16:37 -0600)
commit48268e0f2a5e65b63586398db3a58523a8c7a7a0
tree87564434f43f2ab63c8e25821eb1d4de5168d5dd
parente89e47e6d03f0c8b421268481d077100c2247253
draw: check for instance divisors in vcache_check_run()

When we have instance divisors we don't really know which vertex
elements we'll be fetching ahead of time.

This fixes a bug in instanced drawing which was exposed by the new
draw_vbo() code because of max_index not being ~0 as often as it used
to be.  The test for max_index >= DRAW_PIPE_MAX_VERTICES often hid
this problem before.
src/gallium/auxiliary/draw/draw_pt_vcache.c