summaryrefslogtreecommitdiffstats
path: root/src/intel/tools/disasm.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-12-12 23:26:51 -0800
committerJason Ekstrand <[email protected]>2017-12-14 13:27:06 -0800
commit79269e8f4bc37ab31975cae0d5db4b85eaafe0d8 (patch)
tree429fa3cc5c0c4a1df1ec6a69b2cbd5452cbe3703 /src/intel/tools/disasm.c
parenta7ae72032f550d9680673b67b1e81452d0b74fed (diff)
intel/disasm: Take a devinfo in gen_disasm_create
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/tools/disasm.c')
-rw-r--r--src/intel/tools/disasm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/intel/tools/disasm.c b/src/intel/tools/disasm.c
index 50915795224..1de20f576d4 100644
--- a/src/intel/tools/disasm.c
+++ b/src/intel/tools/disasm.c
@@ -108,7 +108,7 @@ gen_disasm_disassemble(struct gen_disasm *disasm, void *assembly,
}
struct gen_disasm *
-gen_disasm_create(int pciid)
+gen_disasm_create(const struct gen_device_info *devinfo)
{
struct gen_disasm *gd;
@@ -116,10 +116,7 @@ gen_disasm_create(int pciid)
if (gd == NULL)
return NULL;
- if (!gen_get_device_info(pciid, &gd->devinfo)) {
- free(gd);
- return NULL;
- }
+ gd->devinfo = *devinfo;
brw_init_compaction_tables(&gd->devinfo);