Also stop using brw_sr0_reg function as it return new brw_reg, we
already created register, all we have to is just set file, register
number and subnr.
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>
srcarcoperandex_typed:
flagreg
| maskreg
+ | statereg
;
indirectsrcoperand:
error(&@2, "State sub register number %d"
" out of range\n", $2);
- $$ = brw_sr0_reg($2);
- $$.nr = $1;
+ $$.file = BRW_ARCHITECTURE_REGISTER_FILE;
+ $$.nr = BRW_ARF_STATE;
+ $$.subnr = $2;
}
;