panfrost/midgard: Factorize f2f and u2u handling
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 20 Jan 2020 15:03:52 +0000 (16:03 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jan 2020 15:31:28 +0000 (15:31 +0000)
commitf53a0799c7d08b4c0125b95a89f872897a8e8cdf
treeb45a203514bec89cd08d7d9dac692f5a67e06637
parent6548d01b3dab628d224fb2b60bebd16971a3b121
panfrost/midgard: Factorize f2f and u2u handling

Those size conversion operations work the same way apart from f2f
using an fmov op code and u2u using an imov. Let's handle them in the
same case block to avoid code duplication.

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_compile.c