intel/compiler: Disable compaction on gen12 for now
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 8 Aug 2017 22:28:23 +0000 (15:28 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 28 Aug 2019 20:38:33 +0000 (13:38 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_eu_compact.c

index daebdca8e37831e99ea991d17b162275cfc006e1..14b4bf2bf7ea2ea1cab9a95b383fc65787198135 100644 (file)
@@ -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;