i965: Introduce a "render ring prelude" hook.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Oct 2013 03:10:40 +0000 (20:10 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Nov 2013 23:01:13 +0000 (15:01 -0800)
commitbb9d2eab8934fe526e7128e5902fffc2f5a050d3
tree30e536fd686f2d885621d3fc40b8d39d184f2587
parent395a32717df494353703f3581edcd3ba380f16d6
i965: Introduce a "render ring prelude" hook.

The new intel_batchbuffer_emit_render_ring_prelude() hook will be called
when switching from BLT or UNKNOWN_RING to RENDER_RING.  This provides a
place to emit state that should go at the start of each render ring
batch, with minimal overhead.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_batchbuffer.h