From c3c65e88213d98bcc48dc33390ed1076dab23ac3 Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Sat, 6 Jul 2024 15:04:38 -0700 Subject: [PATCH] intel/brw: Don't set acc_wr_control for Xe2 Reviewed-by: Sagar Ghuge Part-of: --- src/intel/compiler/brw_gram.y | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/intel/compiler/brw_gram.y b/src/intel/compiler/brw_gram.y index 1519065c7be..a5b11e8793f 100644 --- a/src/intel/compiler/brw_gram.y +++ b/src/intel/compiler/brw_gram.y @@ -296,8 +296,10 @@ i965_asm_set_instruction_options(struct brw_codegen *p, } brw_inst_set_debug_control(p->devinfo, brw_last_inst, options.debug_control); - brw_inst_set_acc_wr_control(p->devinfo, brw_last_inst, - options.acc_wr_control); + if (p->devinfo->ver < 20) { + brw_inst_set_acc_wr_control(p->devinfo, brw_last_inst, + options.acc_wr_control); + } brw_inst_set_cmpt_control(p->devinfo, brw_last_inst, options.compaction); } @@ -2144,7 +2146,13 @@ depinfo: instoption: ALIGN1 { $$.type = INSTOPTION_FLAG; $$.uint_value = ALIGN1;} | ALIGN16 { $$.type = INSTOPTION_FLAG; $$.uint_value = ALIGN16; } - | ACCWREN { $$.type = INSTOPTION_FLAG; $$.uint_value = ACCWREN; } + | ACCWREN + { + if (p->devinfo->ver >= 20) + error(&@1, "AccWrEnable not supported in Xe2+\n"); + $$.type = INSTOPTION_FLAG; + $$.uint_value = ACCWREN; + } | BREAKPOINT { $$.type = INSTOPTION_FLAG; $$.uint_value = BREAKPOINT; } | NODDCLR { $$.type = INSTOPTION_FLAG; $$.uint_value = NODDCLR; } | NODDCHK { $$.type = INSTOPTION_FLAG; $$.uint_value = NODDCHK; }