From 02df36f394da4f699b4841c279a6b573fcb7c32b Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 8 Sep 2006 10:36:32 +0000 Subject: Basic facility for playing back captured aubfiles. Requires a small hack to the drm to disable command verification on the cmd_buffer ioctl. Doesn't exactly replay as commands are normally delivered as batchbuffers but are captured and replayed as commands on the ring. --- src/mesa/drivers/dri/i965/brw_context.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_context.c') diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index dba6845e53..c1f6617f3f 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -162,6 +162,14 @@ GLboolean brwCreateContext( const __GLcontextModes *mesaVis, brw_exec_init( ctx ); brw_save_init( ctx ); + { + const char *filename = getenv("INTEL_REPLAY"); + if (filename) { + brw_playback_aubfile(brw, filename); + exit(0); + } + } + return GL_TRUE; } -- cgit v1.2.3