freedreno/ir3: simplify split from collect
authorRob Clark <robdclark@chromium.org>
Mon, 27 Jan 2020 16:29:35 +0000 (08:29 -0800)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Feb 2020 02:40:22 +0000 (02:40 +0000)
commit752aeb7b3fe75b3c6ce8d9dadaba9c4111fa7254
tree5c612796e3ac981a391333cf0ba43058252d8cf0
parent8d0e7d9a4c1cfe28b3cd2356e94e287e82821e1a
freedreno/ir3: simplify split from collect

In some cases we need to split components out from what was already a
collect.  That was making it hard to DCE unused components of the
collect.  (Ie. unused components of fragcoord, etc)

So just detect this case and skip the chained collect+split.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
src/freedreno/ir3/ir3_context.c