pan/bi: Use FABSNEG pseudo ops for modifier prop
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 3 Aug 2021 23:16:52 +0000 (19:16 -0400)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 11 Aug 2021 18:59:26 +0000 (14:59 -0400)
commit89e452883a5d39f85a88ed5abe73544d4849ad9e
treee0676f3a810142db9903dff630537d6a90a3fab5
parentb2b0dca4ce1498e2a5db1b31c9f2bc22c6bae1b0
pan/bi: Use FABSNEG pseudo ops for modifier prop

Simplifies pattern matching. This commit by itself fixes multiple
numerical issues -- the previous fabsneg check failed to check the round
mode or the sign of the zero. That will break Vulkan/OpenCL.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12205>
src/panfrost/bifrost/ISA.xml
src/panfrost/bifrost/bi_opt_mod_props.c
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/compiler.h