summaryrefslogtreecommitdiffstats
path: root/src/intel/tools/disasm.c
diff options
context:
space:
mode:
authorSirisha Gandikota <[email protected]>2016-09-08 16:15:19 -0700
committerKenneth Graunke <[email protected]>2016-09-12 16:20:04 -0700
commit63fe9ab8943741cc21d8ba54566ddc49275a6b58 (patch)
tree2ad1788d6c24cbfab801478f07b9f1502c50717e /src/intel/tools/disasm.c
parentd2869c95fbee8213a3d90b42f60414da546c4962 (diff)
aubinator: Simplify gen_disasm_create()'s devinfo handling
Copy the whole devinfo structure instead of just few fields (Ken) Earlier, copied only couple of fields which added more code. So, simplify code by copying the whole structure. Signed-off-by: Sirisha Gandikota <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/tools/disasm.c')
-rw-r--r--src/intel/tools/disasm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/intel/tools/disasm.c b/src/intel/tools/disasm.c
index ddbfa9fe0fe..7e5a7cb05e4 100644
--- a/src/intel/tools/disasm.c
+++ b/src/intel/tools/disasm.c
@@ -89,18 +89,12 @@ struct gen_disasm *
gen_disasm_create(int pciid)
{
struct gen_disasm *gd;
- const struct gen_device_info *dev_info = NULL;
gd = malloc(sizeof *gd);
if (gd == NULL)
return NULL;
- dev_info = gen_get_device_info(pciid);
-
- gd->devinfo.gen = dev_info->gen;
- gd->devinfo.is_cherryview = dev_info->is_cherryview;
- gd->devinfo.is_g4x = dev_info->is_g4x;
-
+ gd->devinfo = *gen_get_device_info(pciid);
brw_init_compaction_tables(&gd->devinfo);
return gd;