From bdeb498070263f3a58fc23f4aa8c15fe2fffc296 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Tue, 8 Aug 2017 15:28:23 -0700 Subject: [PATCH] intel/compiler: Disable compaction on gen12 for now Signed-off-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_eu_compact.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_eu_compact.c b/src/intel/compiler/brw_eu_compact.c index daebdca..14b4bf2 100644 --- a/src/intel/compiler/brw_eu_compact.c +++ b/src/intel/compiler/brw_eu_compact.c @@ -1491,6 +1491,12 @@ brw_init_compaction_tables(const struct gen_device_info *devinfo) assert(gen11_datatype_table[ARRAY_SIZE(gen11_datatype_table) - 1] != 0); switch (devinfo->gen) { + case 12: + control_index_table = NULL; + datatype_table = NULL; + subreg_table = NULL; + src_index_table = NULL; + break; case 11: control_index_table = gen8_control_index_table; datatype_table = gen11_datatype_table; @@ -1533,7 +1539,7 @@ void brw_compact_instructions(struct brw_codegen *p, int start_offset, struct disasm_info *disasm) { - if (unlikely(INTEL_DEBUG & DEBUG_NO_COMPACTION)) + if (unlikely(INTEL_DEBUG & DEBUG_NO_COMPACTION) || p->devinfo->gen > 11) return; const struct gen_device_info *devinfo = p->devinfo; -- 2.7.4