mesa/src/etnaviv
Erik Faye-Lund 6ea7bdb152 mesa/main: drop use_legacy_math_rules
Seems the only thing that really needs this is fpow(0, 0), which should
return NaN, but then gets multiplied with zero. Let's fix that by doing
a bcsel instead of fmul to select the result here. While we're at it,
get rid of the fabs for stop, which isn't needed.

This fixes a piglits failure for most (if not all?) drivers that doesn't
support legacy math rules.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22789>
2023-05-04 06:11:44 +00:00
..
ci mesa/main: drop use_legacy_math_rules 2023-05-04 06:11:44 +00:00
drm etnaviv: drm: fix check if BO is on a deferred destroy list 2023-01-28 13:48:30 +00:00
drm-shim meson: add idep_mesautil to components using simple_mtx.h 2020-11-24 18:13:07 -08:00
meson.build etnaviv: add drm-shim 2019-11-21 22:56:04 +00:00