freedreno/ir3: propagate dest flags for collect/fanin
authorRob Clark <robdclark@chromium.org>
Tue, 15 Oct 2019 22:46:42 +0000 (15:46 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 24 Oct 2019 20:08:56 +0000 (13:08 -0700)
commit9e211b57b85903d4444880b753f22206da86221c
tree13470fbf3408c6d02781b2f08deac835a9310088
parent49ab94694d73e719e348c0112d7e2bd74e486738
freedreno/ir3: propagate dest flags for collect/fanin

We did this properly already for split/fanout.  But collect was missed.
Extract out a helper to share.

This way we avoid copy propagating a mov from high or half reg into an
instruction which cannot consume a high/half reg.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/ir3/ir3_context.c