freedreno/a6xx: de-duplicate vinterp/vpsrepl state building
authorRob Clark <robdclark@chromium.org>
Mon, 22 Jun 2020 15:39:12 +0000 (08:39 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Jun 2020 22:29:28 +0000 (22:29 +0000)
commit68d6aa3dd02a33b650aeb66fbca83072a52202a1
tree390f33bcb4bca60f44ec18c2dfb89b987f7ef766
parent022c363cfbb7e37eef5d5b7559d24f8237a72f27
freedreno/a6xx: de-duplicate vinterp/vpsrepl state building

When we flip the texcoord patch, we'll setup PNTC input slot in the
pre-built interp stateobj, rather than this being a draw-time (slow-
path) built stateobj.  But rather than duplicate more of the slow-
path logic, refactor it out into a helper that is reused in both
cases.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5595>
src/gallium/drivers/freedreno/a6xx/fd6_program.c