diff options
author | Keith Whitwell <[email protected]> | 2006-09-08 10:36:32 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2006-09-08 10:36:32 +0000 |
commit | 02df36f394da4f699b4841c279a6b573fcb7c32b (patch) | |
tree | 0c1885a25d16c1897d7de494c02b422b479932ab /src/mesa/drivers/dri/i965/brw_draw.c | |
parent | a5e73e68878ebed7347532285019befc8c7b1106 (diff) |
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.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_draw.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 02c24574232..ef4f1104848 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -400,6 +400,12 @@ GLboolean brw_draw_prims( GLcontext *ctx, retval = brw_try_draw_prims(ctx, arrays, prim, nr_prims, ib, min_index, max_index, flags); } + if (intel->aub_file) { + intelFinish( &intel->ctx ); + intel->aub_wrap = 1; + } + + return retval; } |