nir: replace .lower_sub with .has_fsub and .has_isub

This allows a more fine-grained control about whether
a backend supports one of these instructions.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6597>
This commit is contained in:
Daniel Schürmann
2020-09-04 11:24:26 +01:00
committed by Marge Bot
parent b3ce55b445
commit bd8e84eb8d
22 changed files with 37 additions and 15 deletions

View File

@@ -50,7 +50,6 @@ static const nir_shader_compiler_options vs_nir_options = {
.lower_fdiv = true,
.lower_fmod = true,
.lower_fsqrt = true,
.lower_sub = true,
.lower_flrp32 = true,
.lower_flrp64 = true,
/* could be implemented by clamp */
@@ -68,7 +67,6 @@ static const nir_shader_compiler_options fs_nir_options = {
.lower_fpow = true,
.lower_fdiv = true,
.lower_fmod = true,
.lower_sub = true,
.lower_flrp32 = true,
.lower_flrp64 = true,
.lower_fsign = true,