i965: Don't rebase the index buffer to min 0 if any arrays are in VBOs.
authorEric Anholt <eric@anholt.net>
Tue, 12 Oct 2010 21:39:12 +0000 (14:39 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 Oct 2010 22:17:35 +0000 (15:17 -0700)
commit43873b53c4d15f10f0321c770b1b8bd537cc226d
treed2c61e9c7c0d6565a2f5393c5f3a17f7c70da856
parent3316a542050182d159ed5e5e07aa62839f293b69
i965: Don't rebase the index buffer to min 0 if any arrays are in VBOs.

There was a check to only do the rebase if we didn't have everything
in VBOs, but nexuiz apparently hands us a mix of VBOs and arrays,
resulting in blocking on the GPU to do a rebase.

Improves nexuiz 800x600, high-settings performance on my Ironlake 41%
(+/- 1.3%), from 14.0fps to 19.7fps.
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_rebase.c