i965: Completely annotate the batch bo when aub dumping.
authorPaul Berry <stereotype441@gmail.com>
Mon, 7 May 2012 21:37:00 +0000 (14:37 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 22 May 2012 22:19:00 +0000 (15:19 -0700)
commitea8e854b2cefc3f3590b6c19e6108a471be951ba
tree33b12e93811c09c1577c001d76c1f7fa6b5d6894
parent1b87a93983c4f217bf7cb4e422de39e418291e39
i965: Completely annotate the batch bo when aub dumping.

Previously, when the environment variable INTEL_DEBUG=aub was set,
mesa would simply instruct DRM to start dumping data to an .aub file,
but we would not provide DRM with any information about the format of
the data in various buffers.  As a result, a lot of the data in the
generate .aub file would be unannotated, making further data analysis
difficult.

This patch causes the entire contents of each batch buffer to be
annotated using the data in brw->state_batch_list (which was
previously used only to annotate the output of INTEL_DEBUG=bat).  This
includes data that was allocated by brw_state_batch, such as binding
tables, surface and sampler states, depth/stencil state, and so on.

The new annotation mechanism requires DRM version 2.4.34.

Reviewed-by: Eric Anholt <eric@anholt.net>
configure.ac
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state_batch.c
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/i965/gen6_blorp.cpp
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_context.h