From: Sagar Ghuge Date: Thu, 6 Feb 2020 22:11:55 +0000 (-0800) Subject: intel/tools: Set correct address register file and number in i965_asm X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9526e5c359b4cfa724dd8bba52586435e29b75bf;p=mesa.git intel/tools: Set correct address register file and number in i965_asm We need to use already created brw_reg and set correct file type, register number and sub register number. Signed-off-by: Sagar Ghuge Reviewed-by: Matt Turner Part-of: --- diff --git a/src/intel/tools/i965_gram.y b/src/intel/tools/i965_gram.y index 82b3d2f5119..e208b0ebc47 100644 --- a/src/intel/tools/i965_gram.y +++ b/src/intel/tools/i965_gram.y @@ -1781,7 +1781,9 @@ addrreg: error(&@2, "Address sub resgister number %d" "out of range\n", $2); - $$ = brw_address_reg($2); + $$.file = BRW_ARCHITECTURE_REGISTER_FILE; + $$.nr = BRW_ARF_ADDRESS; + $$.subnr = $2; } ;