etnaviv: nir: use lower_fround_even

The generated asm is not as good as the one from the binary blob but
does its job.

Passes: dEQP-GLES3.functional.shaders.operator.common_functions.round*.*

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20709>
This commit is contained in:
Christian Gmeiner 2023-01-14 21:26:18 +01:00
parent 5fdfd8044d
commit 4fb2463a37

View file

@ -37,6 +37,7 @@ etna_compiler_create(const char *renderer, const struct etna_specs *specs)
compiler->options = (nir_shader_compiler_options) {
.lower_fpow = true,
.lower_fround_even = true,
.lower_ftrunc = true,
.fuse_ffma16 = true,
.fuse_ffma32 = true,