i965: Avoid blocking on the GPU for setting the HiZ op vertex data.
authorEric Anholt <eric@anholt.net>
Mon, 27 Feb 2012 17:52:05 +0000 (09:52 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 28 Feb 2012 22:08:56 +0000 (14:08 -0800)
commit0da508644339cdc59f122f503f86ff2eb4949d97
tree5a458a6d86d45b1e5e9e90c067a66e040ef5adcf
parentb823b99ec0f13af257dcd885f436a4d294c6222a
i965: Avoid blocking on the GPU for setting the HiZ op vertex data.

We need to allocate new space every time to avoid blocking on the last
HiZ op completing.  There are two easy ways to do this:
brw_state_batch() and intel_upload_data().  brw_state_batch() is
simpler and avoids another buffer allocation.

Improves Unigine Tropics performance 0.376416% +/- 0.148722% (n=7).

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/i965/gen6_hiz.c
src/mesa/drivers/dri/i965/gen7_hiz.c