pan/mdg: refactor emit_alu_bundle
authorItalo Nicola <italonicola@collabora.com>
Wed, 29 Jul 2020 20:50:21 +0000 (20:50 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 22:55:36 +0000 (22:55 +0000)
commit140185eb04791f38b0e6a9fc6ded009ba020ab08
tree10020f480f1ec28882ad57d6319c590cabbd76a1
parent0f0f9ee710f1ea0d42f5abb17721133a4d95c7b7
pan/mdg: refactor emit_alu_bundle

This refactor prepares emit_alu_bundle() for the next commit that
reconstructs branch instructions right before emission.
It also simplifies the code since the previous control flow was only
better when we had the prepacked fields in midgard_instruction.

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/midgard_emit.c