panfrost/midgard: Make sure promote_fmov() only promotes 32-bit imovs
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 20 Jan 2020 14:55:21 +0000 (15:55 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jan 2020 15:31:28 +0000 (15:31 +0000)
commit6548d01b3dab628d224fb2b60bebd16971a3b121
treec63e6eb0a37ede9b5af91e61740bac38f6d724c8
parent9566f26ed465942f831682dbe2d9a0482835a5c6
panfrost/midgard: Make sure promote_fmov() only promotes 32-bit imovs

mir_constant_float() assumes we're dealing with 32-bit integers/floats,
which is only the case if reg_mode is equal to midgard_reg_mode_32.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3478>
src/panfrost/midgard/midgard_opt_float.c