freedreno/ir3: add helper to determine point-coord inputs
authorRob Clark <robdclark@chromium.org>
Mon, 22 Jun 2020 15:24:55 +0000 (08:24 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Jun 2020 22:29:28 +0000 (22:29 +0000)
commit022c363cfbb7e37eef5d5b7559d24f8237a72f27
tree089866f20c9f79ff89125ca49dfeee33c514bf80
parent64c2a10707f8296944160284bf62d0e6bf7a27d9
freedreno/ir3: add helper to determine point-coord inputs

This will simplify a bit the logic for setting up vinterp/vprepl in the
driver backend, and also avoid it being a flag-day when we switch the
texcoord pipe cap.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5595>
src/freedreno/ir3/ir3_shader.h
src/gallium/drivers/freedreno/ir3/ir3_gallium.h