intel: Add the ability to supply annotations for .aub files.
authorPaul Berry <stereotype441@gmail.com>
Fri, 4 May 2012 19:41:00 +0000 (12:41 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 10 May 2012 18:32:39 +0000 (11:32 -0700)
commitda02f72bc286fd8d669f3860bdd97a8d1a1c3015
tree879637f843a63c689d172be5f7c06cae2687f47a
parentcf7cc62a9817a495264bbb037f0175cef9bd7a53
intel: Add the ability to supply annotations for .aub files.

This patch adds a new function,
drm_intel_bufmgr_gem_set_aub_annotations(), which can be used to
annotate the type and subtype of data stored in various sections of
each buffer.  This data is used to populate type and subtype fields
when generating the .aub file, which improves the ability of later
debugging tools to analyze the contents of the .aub file.

If drm_intel_bufmgr_gem_set_aub_annotations() is not called, then we
fall back to the old set of annotations (annotate the portion of the
batchbuffer that is executed as AUB_TRACE_TYPE_BATCH, and everything
else as AUB_TRACE_TYPE_NOTYPE).

Reviewed-by: Eric Anholt <eric@anholt.net>
intel/intel_bufmgr.h
intel/intel_bufmgr_gem.c