pan/mdg: eliminate references to ins->alu.reg_mode
authorItalo Nicola <italonicola@collabora.com>
Fri, 10 Jul 2020 09:36:58 +0000 (09:36 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 22:55:36 +0000 (22:55 +0000)
commit5f7e0185cd9e93e19e3bbf9236458234f6448044
tree2500c33e7eb58cd2d3bc7c3ce710fabf040487db
parentf4c89bf9bdf2e194cb63778610f3dc690b761c06
pan/mdg: eliminate references to ins->alu.reg_mode

In an effort to simplify MIR by not prepacking instructions, this commit
removes references to `ins->alu.reg_mode` so that we can later remove
the `ins->alu` field from midgard_instruction.
Every place that was using reg_mode was changed to now use the generic
`ins->src_type` field instead.
We then reconstruct the reg_mode field right before emission.

Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5933>
src/panfrost/midgard/compiler.h
src/panfrost/midgard/midgard_compile.c
src/panfrost/midgard/midgard_emit.c
src/panfrost/midgard/midgard_print.c
src/panfrost/midgard/mir_promote_uniforms.c