freedreno/ir3: move where we preserve binning pass inputs
authorRob Clark <robdclark@chromium.org>
Thu, 14 May 2020 21:28:52 +0000 (14:28 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 16:06:17 +0000 (16:06 +0000)
commitb828929ac9d14309b56177350b37def3b001e8a6
treec243391ce113d29530e81832934b32915fccda0f
parentd0cfc06a2c3ab583ab8a29d9f365cb5ee417dfe3
freedreno/ir3: move where we preserve binning pass inputs

For a6xx, since we use same VBO state for binning and VS, we need to
preserve potentially unused inputs.  This needs to be done before DCE.
So move it before we add earlier DCE passes.

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