freedreno/ir3: Set IR3_REG_HALF flag on src as well in immediate MOV
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 10 Jan 2020 21:59:43 +0000 (13:59 -0800)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 7 Feb 2020 17:51:25 +0000 (09:51 -0800)
commitd55dfef78237380d3734f2341818daa299a7f330
tree9e7f876936a88f214aafadbf9326dd7e7676a214
parentfbfc8c35315f666d14c8b1f9ec71cb70d5e57d84
freedreno/ir3: Set IR3_REG_HALF flag on src as well in immediate MOV

This lets is_same_type_reg() recognize that the dst and src of the
immediate MOV are the same and unblocks fp16 constant propagation.

Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737>
src/freedreno/ir3/ir3.h