rusticl/kernel: explicitly set rounding modes
authorKarol Herbst <kherbst@redhat.com>
Tue, 12 Dec 2023 14:46:48 +0000 (15:46 +0100)
committerEric Engestrom <eric@engestrom.ch>
Sun, 17 Dec 2023 23:48:00 +0000 (23:48 +0000)
commit1ce44041b130cb5ab58e3704808176882b76d70a
tree1a22776c1626b649b8543ecb88002f69575ce4fd
parent065c7d1f8c44dfe481f20b5638b80ae4d0940da7
rusticl/kernel: explicitly set rounding modes

Since dbbf566588c ("aco,ac/llvm,radeonsi: lower f2f16 to f2f16_rtz in nir")
radeonsi behavior changed and some of the core fp16 ops broke as a result.

We should explicitly specify the rounding mode until we add an gallium API
for drivers to advertize what they prefer.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26655>
(cherry picked from commit d136583c82d5036696b322bbe966490b321c96e1)
.pick_status.json
src/gallium/frontends/rusticl/core/kernel.rs
src/gallium/frontends/rusticl/mesa/compiler/nir.rs