aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_batchbuffer.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-06-28 19:36:04 -0700
committerKenneth Graunke <[email protected]>2013-07-03 10:48:14 -0700
commitf05f8793c83c05a42eb74fc086b51e01a6b631b7 (patch)
treeec0e3c6cde5fe8bc5a5c076038b93a36c7acfbd1 /src/mesa/drivers/dri/i965/intel_batchbuffer.c
parent749160aab3e0de87148732d9d246d6901a2dd820 (diff)
i965: Move debug_batch hook out of the vtable.
brw_debug_batch() is the only implementation of this function, so it makes sense to just call it directly. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_batchbuffer.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index a5386910e22..b782966ac2d 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -31,6 +31,7 @@
#include "intel_reg.h"
#include "intel_bufmgr.h"
#include "intel_buffers.h"
+#include "brw_context.h"
static void
intel_batchbuffer_reset(struct intel_context *intel);
@@ -165,8 +166,7 @@ do_batch_dump(struct intel_context *intel)
if (ret == 0) {
drm_intel_bo_unmap(batch->bo);
- if (intel->vtbl.debug_batch != NULL)
- intel->vtbl.debug_batch(intel);
+ brw_debug_batch(intel);
}
}