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:
@@ -1502,7 +1502,7 @@ directgenreg:
|
||||
{
|
||||
memset(&$$, '\0', sizeof($$));
|
||||
$$.file = BRW_GENERAL_REGISTER_FILE;
|
||||
$$.nr = $1;
|
||||
$$.nr = $1 * reg_unit(p->devinfo);
|
||||
$$.subnr = $2;
|
||||
}
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user