freedreno/ir3: Refactor ir3_cp's lower_immed().
authorEric Anholt <eric@anholt.net>
Mon, 1 Jun 2020 18:20:51 +0000 (11:20 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 5 Jun 2020 20:36:29 +0000 (13:36 -0700)
commitab29f2da42f0c5da21edc4dad82e841f243ec680
treef61d9187a38beb4f4cccfa807627db73852195c3
parent4065861807f1f488f9e9dc0254009982ccbf7784
freedreno/ir3: Refactor ir3_cp's lower_immed().

There was duplicated handling in the callers that we can just move inside.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
src/freedreno/ir3/ir3_cp.c