[Intel-gfx] AUB file dump support patches

Zhenyu Wang zhenyuw at linux.intel.com
Wed Feb 16 07:07:37 CET 2011


AUB file is the input data for internal GenX GPU simulator,
which has been proved really helpful when debugging for new
GenX architecture. AUB file itself actually contains different
kinds of trace blocks for GPU execution, e.g batch/ring buffer,
surface states, pipeline FF states, etc.

This series contain patches again libdrm and mesa to add AUB
file dump support. Thanks to Eric and Yuanhan who did most of
the hard work.

First one is for libdrm, which has new API definition for enable
aub file dump, and BMP dump for required surface. Note that we just
use a fake GTT space in AUB dump, which is not necessarily equal
to real GTT address.

Following ones are for mesa, which should be simple enough.

After applying these patches, do 'export INTEL_DEBUG=aub'.
'intel.aub' file will be generated when you run some 3D test.
How to use it? For example,

    AubList intel.aub : generate intel.lst which 3D state info and
    			ring/batch commands

    AubLoad intel.aub -device sbrD0 : start fulsim to run the aub as
				      Sandybridge D0.

Please help to review.

Thanks.



More information about the Intel-gfx mailing list