pan/mdg: emit REGISTER_UNUSED on unused ALU src2
authorItalo Nicola <italonicola@collabora.com>
Thu, 30 Jul 2020 23:24:06 +0000 (23:24 +0000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 31 Jul 2020 00:25:21 +0000 (00:25 +0000)
commita91011c9eca0e561475e476b7b6ab5da48a412c7
tree340fdf2e02ce122104d754b660b20e1aa7ac4a7d
parenta2065917cc8f95f76c2926d8d7cb4bf3c9ff7de1
pan/mdg: emit REGISTER_UNUSED on unused ALU src2

This saves power and time by skipping a roundtrip to the register file.

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/6128>
src/panfrost/midgard/helpers.h
src/panfrost/midgard/midgard_emit.c