From bc24590f0c579a2528fd94eb8d40dd4ce12eba29 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 22 Sep 2016 14:58:11 +0300 Subject: intel/i965: make gen_device_info mutable Make gen_device_info a mutable structure so we can update the fields that can be refined by querying the kernel (like subslices and EU numbers). This patch does not make any functional change, it just makes gen_get_device_info() fill a structure rather than returning a const pointer. Signed-off-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke --- src/intel/tools/disasm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/intel/tools/disasm.c') diff --git a/src/intel/tools/disasm.c b/src/intel/tools/disasm.c index 2b51424742d..e52761586d0 100644 --- a/src/intel/tools/disasm.c +++ b/src/intel/tools/disasm.c @@ -101,7 +101,9 @@ gen_disasm_create(int pciid) if (gd == NULL) return NULL; - gd->devinfo = *gen_get_device_info(pciid); + if (!gen_get_device_info(pciid, &gd->devinfo)) + return NULL; + brw_init_compaction_tables(&gd->devinfo); return gd; -- cgit v1.2.3