intel/tools: Handle STATE_REG in typed source operand
authorSagar Ghuge <sagar.ghuge@intel.com>
Wed, 5 Feb 2020 00:38:44 +0000 (16:38 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Feb 2020 22:23:38 +0000 (22:23 +0000)
commit87d9e78f268a462b96dd489bf8d8e356801306f8
treea267ed913ce7b2c9a57b0035c64f9329e2421bfc
parent2a75e603652ef8670c1b5433dc435b11ce9309a6
intel/tools: Handle STATE_REG in typed source operand

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>
src/intel/tools/i965_gram.y