i965: Move annotate_aub out of the vtable.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 2 Jul 2013 08:19:23 +0000 (01:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 3 Jul 2013 17:48:14 +0000 (10:48 -0700)
brw_annotate_aub() is the only implementation of this function, so it
makes sense to just call it directly.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_context.h

index fbf38f29b9e92e2c986e6fe36fb95a524c9ebb0b..f9a541fa636f84948daf286dc9cb148b8bfcad51 100644 (file)
@@ -159,7 +159,6 @@ void brwInitVtbl( struct brw_context *brw )
    brw->intel.vtbl.new_batch = brw_new_batch;
    brw->intel.vtbl.finish_batch = brw_finish_batch;
    brw->intel.vtbl.destroy = brw_destroy_context;
-   brw->intel.vtbl.annotate_aub = brw_annotate_aub;
 
    assert(brw->intel.gen >= 4);
    if (brw->intel.gen >= 7) {
index b782966ac2d13be716fe3f08119a85855943a689..46f17fd19275ad51538ac4f9adb139050c3f801f 100644 (file)
@@ -203,8 +203,8 @@ do_flush_locked(struct intel_context *intel)
         flags |= I915_EXEC_GEN7_SOL_RESET;
 
       if (ret == 0) {
-         if (unlikely(INTEL_DEBUG & DEBUG_AUB) && intel->vtbl.annotate_aub)
-            intel->vtbl.annotate_aub(intel);
+         if (unlikely(INTEL_DEBUG & DEBUG_AUB))
+            brw_annotate_aub(intel);
         if (intel->hw_ctx == NULL || batch->is_blit) {
            ret = drm_intel_bo_mrb_exec(batch->bo, 4 * batch->used, NULL, 0, 0,
                                        flags);
index d3e09b73adcbcc6c13716e1ca74d1f7c474737c4..5fd9ccd1aebab25f3c3c3e293c0d12b099e5690c 100644 (file)
@@ -119,8 +119,6 @@ struct intel_context
       void (*finish_batch) (struct intel_context * intel);
       void (*new_batch) (struct intel_context * intel);
 
-      void (*annotate_aub)(struct intel_context *intel);
-
       void (*update_texture_surface)(struct gl_context *ctx,
                                      unsigned unit,
                                      uint32_t *binding_table,