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_aub.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_aub.c') diff --git a/src/mesa/drivers/dri/i965/brw_aub.c b/src/mesa/drivers/dri/i965/brw_aub.c index 2b7d1f4356..cc70692add 100644 --- a/src/mesa/drivers/dri/i965/brw_aub.c +++ b/src/mesa/drivers/dri/i965/brw_aub.c @@ -291,6 +291,9 @@ int brw_aub_init( struct brw_context *brw ) i++; + if (_mesa_getenv("INTEL_REPLAY")) + return 0; + if (_mesa_getenv("INTEL_AUBFILE")) { val = snprintf(filename, sizeof(filename), "%s%d.aub", _mesa_getenv("INTEL_AUBFILE"), i%4); _mesa_printf("--> Aub file: %s\n", filename); -- cgit v1.2.3