agx: Add interpolateAtOffset lowering pass
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 4 Aug 2023 13:39:55 +0000 (09:39 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Aug 2023 09:50:11 +0000 (09:50 +0000)
commitff0e25d293bb961630b425fbd9da85473eb7bc88
tree32cbcd2b526123cfeb57f83abeac2fa03b6d45eb
parent48029548f332cade304edff9eae4d3998c1f181f
agx: Add interpolateAtOffset lowering pass

Add a lowering pass that lowers interpolation to math on the coefficient
registers. This handles interpolateAtOffset, as well as flat shading as an easy
special case.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24498>
src/asahi/compiler/agx_nir.h
src/asahi/compiler/agx_nir_lower_interpolation.c [new file with mode: 0644]
src/asahi/compiler/meson.build