freedreno/ir3: add generic get_barycentric()
authorJonathan Marek <jonathan@marek.ca>
Sun, 21 Jun 2020 20:31:10 +0000 (16:31 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 1 Jul 2020 13:52:59 +0000 (13:52 +0000)
commit33457fc705de00e326830abe3322f6bf261ec3e7
treee2e6a0ac0b73081817195e97b6c7f5f1f7cfb067
parent75fef41f16c7b028c3c7809eb7f9d8e3ea4e259c
freedreno/ir3: add generic get_barycentric()

This will be useful to support the missing barycentric sysvals.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5582>
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_context.h
src/freedreno/ir3/ir3_shader.h