v3dv/pipeline: enable lower_add_sat NIR option

We don't support them by hw, so we would need to get them
lowered. This fix some crashes while using renderdoc with UE4 shooter
demo traces.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8582>
This commit is contained in:
Alejandro Piñeiro 2021-01-19 13:48:46 +01:00 committed by Marge Bot
parent 3b27243b01
commit e333692e9d
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ static const struct spirv_to_nir_options default_spirv_options = {
};
const nir_shader_compiler_options v3dv_nir_options = {
.lower_add_sat = true,
.lower_all_io_to_temps = true,
.lower_extract_byte = true,
.lower_extract_word = true,