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 <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30060>
This commit is contained in:
Caio Oliveira 2024-07-06 16:38:17 -07:00 committed by Marge Bot
parent 6cdd56e7ed
commit e63b0571bc

View file

@ -1502,7 +1502,7 @@ directgenreg:
{
memset(&$$, '\0', sizeof($$));
$$.file = BRW_GENERAL_REGISTER_FILE;
$$.nr = $1;
$$.nr = $1 * reg_unit(p->devinfo);
$$.subnr = $2;
}
;