bifrost: Implement fine and coarse derivatives
authorJason Ekstrand <jason.ekstrand@collabora.com>
Fri, 11 Mar 2022 22:11:16 +0000 (16:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Sat, 12 Mar 2022 02:27:02 +0000 (02:27 +0000)
commitd2a09f3dd3e97f1439300855edfa34db1b998506
tree82a49bea442b69524a061d0abf40557b7de0eebf
parent83010c57a62ce83521da8ebd2f1f716dd86243ce
bifrost: Implement fine and coarse derivatives

We leave the undecorated ops as fine so we don't disturb panfrost.  For
coarse derivatives, we use a lane ID of 0 for the first lane and 1 or 2
for the second depending on axis.  This ensures that coarse derivatives
are quad-uniform.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15352>
src/panfrost/bifrost/bifrost_compile.c