intel/tools: Set correct address register file and number in i965_asm
authorSagar Ghuge <sagar.ghuge@intel.com>
Thu, 6 Feb 2020 22:11:55 +0000 (14:11 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Feb 2020 22:23:38 +0000 (22:23 +0000)
We need to use already created brw_reg and set correct file type,
register number and sub register number.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3952>

src/intel/tools/i965_gram.y

index 82b3d2f5119047797ad786ea0583be691f07c19d..e208b0ebc47b3a310cfaedbf1cba7b3da821d522 100644 (file)
@@ -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;
        }
        ;