pan/bi: Imply round mode most of the time
authorAlyssa Rosenzweig <alyssa@collabora.com>
Sun, 27 Feb 2022 20:46:17 +0000 (15:46 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 7 Apr 2022 18:03:57 +0000 (18:03 +0000)
commit1fb4427a7aeeca7ada1ff57faad69a56da1c53cd
tree5f2a81b147547ad45f56452827c8072c5a39b82f
parenta747708b9d59cbe0f3801cac6f39ae3159023cc1
pan/bi: Imply round mode most of the time

Much less noisy, and provides a path to further improvements. There is a slight
behaviour change: int-to-float conversions now use RTE instead of RTZ. For
32-bit opcodes, this affects conversions of integers with magnitude greater than
2^23 by at most 1 ulp. As this behaviour is unspecified in GLSL, this change is
believed to be acceptable.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15187>
src/panfrost/bifrost/bi_builder.h.py
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/bifrost_isa.py
src/panfrost/bifrost/test/test-constant-fold.cpp
src/panfrost/bifrost/test/test-optimizer.cpp
src/panfrost/bifrost/test/test-scheduler-predicates.cpp
src/panfrost/bifrost/valhall/test/test-add-imm.cpp
src/panfrost/bifrost/valhall/test/test-lower-isel.cpp
src/panfrost/bifrost/valhall/test/test-packing.cpp
src/panfrost/bifrost/valhall/test/test-validate-fau.cpp