diff options
author | Eric Anholt <eric@anholt.net> | 2010-10-12 14:39:12 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-10-12 15:17:35 -0700 |
commit | 43873b53c4d15f10f0321c770b1b8bd537cc226d (patch) | |
tree | d2c61e9c7c0d6565a2f5393c5f3a17f7c70da856 /src/mesa/drivers/dri/i965/brw_draw.c | |
parent | 3316a542050182d159ed5e5e07aa62839f293b69 (diff) |
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.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_draw.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 6a4dda2a40..af5c37583b 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -441,7 +441,7 @@ void brw_draw_prims( GLcontext *ctx, /* Decide if we want to rebase. If so we end up recursing once * only into this function. */ - if (min_index != 0) { + if (min_index != 0 && !vbo_any_varyings_in_vbos(arrays)) { vbo_rebase_prims(ctx, arrays, prim, nr_prims, ib, min_index, max_index, |