panfrost/midgard: Rework mir_adjust_constants() to make it type/size agnostic
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 20 Jan 2020 14:44:48 +0000 (15:44 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jan 2020 15:31:28 +0000 (15:31 +0000)
commit9566f26ed465942f831682dbe2d9a0482835a5c6
tree1f2b74827c49912785f31176c97bf598e50d3cfe
parent15c92d158cad000b12cbed7f9c3a8248e8c99aee
panfrost/midgard: Rework mir_adjust_constants() to make it type/size agnostic

Right now, constant combining is not supported in 16 bit mode, and 64
bit mode is simply ignored. Let's rework the function to make it
type/bit-size agnostic.

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