[Nouveau] [PATCH] Support writing out the pushbuffer in renouveau trace format (v2)

2010-04-12 Thread Luca Barbieri
Changes in v2: - Unmap buffers we mapped, avoid assertion - Silence warnings This patch causes libdrm, when NOUVEAU_DUMP=1 is set, to write the pushbuffer to stdout instead of submitting it to the card. renouveau-parse can then be used to parse it and obtain a readable trace. This is very useful

Re: [Nouveau] [PATCH] Support writing out the pushbuffer in renouveau trace format (v2)

2010-04-13 Thread Patrice Mandin
Le Mon, 12 Apr 2010 18:20:52 +0200 Luca Barbieri a écrit: > Changes in v2: > - Unmap buffers we mapped, avoid assertion > - Silence warnings > > This patch causes libdrm, when NOUVEAU_DUMP=1 is set, to write the > pushbuffer to stdout instead of submitting it to the card. > > renouveau-parse ca

Re: [Nouveau] [PATCH] Support writing out the pushbuffer in renouveau trace format (v2)

2010-04-13 Thread Luca Barbieri
Simply putting the dump in the renouveau directory where a renouveau dump was taken previously seems to work for me (probably because we use the same handle values as nVidia?). But yes, the tools should be improved here and dumping the objclass of the grobjs would be necessary for that. __