[Intel-gfx] [PATCH] intel: Add AUB file dump support

Eric Anholt eric at anholt.net
Tue Feb 22 18:33:22 CET 2011


On Tue, 22 Feb 2011 14:55:36 +0800, Zhenyu Wang <zhenyuw at linux.intel.com> wrote:
> On 2011.02.22 14:51:33 +0800, Xiang, Haihao wrote:
> > > oh, right, I see. You still need subtype as kernel.
> > > 
> > > How about 'MEDIA_PROG'? Or what's the name for your current kernel?
> > 'MEDIA_PROG' is ok for me
> > 
> 
> New libdrm patch for aub dump attached. Please help to test.

While I originally hacked it up this way where libdrm intuits what kind
of buffer it is from the name of the buffer, it's a bad way to design an
interface.  We should really have a command that marks (an area) of a
buffer object as being a particular AUB type, and Mesa would use that
command to mark its buffers as appropriate.  Particularly since we're
moving to streaming more of our state buffers into larger buffer
objects.

We also can't commit code to Mesa that just writes into some arbitrary
file based on an environment variable -- keep in mind that our Mesa
driver is loaded from the X Server which is running as root.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110222/04ce4c61/attachment.sig>


More information about the Intel-gfx mailing list