intel_gpu_dump: Get the devid so we can decode correctly on gen4.

This commit is contained in:
Eric Anholt
2009-04-12 15:57:07 -07:00
parent b51588b9bd
commit 593a47f00e
3 changed files with 14 additions and 3 deletions
+3 -1
View File
@@ -47,6 +47,7 @@
#include "intel_decode.h"
#include "intel_chipset.h"
#include "intel_gpu_tools.h"
#define BUFFER_FAIL(_count, _len, _name) do { \
fprintf(out, "Buffer size too small in %s (%d < %d)\n", \
@@ -1858,11 +1859,12 @@ main (int argc, char *argv[])
return 1;
}
intel_get_pci_device();
filename = argv[1];
read_data_file (filename, &data, &count);
intel_decode (data, count, 0, 0);
intel_decode (data, count, 0, devid);
free (data);