From e63b0571bcca2931674ec001225be4d3af74ff1b Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Sat, 6 Jul 2024 16:38:17 -0700 Subject: [PATCH] intel/brw: Account for reg_unit() in assembler Use reg_unit() to match the internal representation in brw_reg. Fixes the assembler tool when targetting Xe2. Reviewed-by: Sagar Ghuge Part-of: --- src/intel/compiler/brw_gram.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_gram.y b/src/intel/compiler/brw_gram.y index c168357663f..b747cf21ebc 100644 --- a/src/intel/compiler/brw_gram.y +++ b/src/intel/compiler/brw_gram.y @@ -1502,7 +1502,7 @@ directgenreg: { memset(&$$, '\0', sizeof($$)); $$.file = BRW_GENERAL_REGISTER_FILE; - $$.nr = $1; + $$.nr = $1 * reg_unit(p->devinfo); $$.subnr = $2; } ;