pan/bi: Fix clper_xor on Mali-G31
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 3 Jun 2022 00:27:41 +0000 (20:27 -0400)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 3 Jun 2022 00:32:43 +0000 (20:32 -0400)
commit7535362204642db2b59b48ac910cb74146bb96a6
treee85c820a21ace6e0e9fc5d98f417804765069315
parent0af1bdfaa0c1a3fa269d3501673d99dc6e19ed84
pan/bi: Fix clper_xor on Mali-G31

Mali-G31 has the old CLPER instruction, not the new one, which means we don't
get to specify a custom lane op. But the clper_xor helper incorrectly checked
the arch, not the implementation quirk.

Fixes: c00e7b729fe ("pan/bi: Optimize abs(derivative)")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reported-by: Icecream95 <ixn@disroot.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16846>
src/panfrost/bifrost/bifrost_compile.c