v3d/compiler: enable lower_add_sat NIR option
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 20 Jan 2021 09:50:07 +0000 (10:50 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 Jan 2021 12:41:52 +0000 (12:41 +0000)
We are enabling this option for the Vulkan driver, so it makes sense
to enable it for the OpenGL one.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8582>

src/broadcom/compiler/nir_to_vir.c

index 4e92435..ef04360 100644 (file)
@@ -3218,6 +3218,7 @@ nir_to_vir(struct v3d_compile *c)
 }
 
 const nir_shader_compiler_options v3d_nir_options = {
+        .lower_add_sat = true,
         .lower_all_io_to_temps = true,
         .lower_extract_byte = true,
         .lower_extract_word = true,