summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_batchbuffer.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-10-28 20:10:40 -0700
committerKenneth Graunke <[email protected]>2013-11-21 15:01:13 -0800
commitbb9d2eab8934fe526e7128e5902fffc2f5a050d3 (patch)
tree30e536fd686f2d885621d3fc40b8d39d184f2587 /src/mesa/drivers/dri/i965/intel_batchbuffer.c
parent395a32717df494353703f3581edcd3ba380f16d6 (diff)
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_batchbuffer.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index d8eb3fc8837..d054e444d9f 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -179,6 +179,11 @@ do_batch_dump(struct brw_context *brw)
}
}
+void
+intel_batchbuffer_emit_render_ring_prelude(struct brw_context *brw)
+{
+}
+
/**
* Called when starting a new batch buffer.
*/