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:

committed by
Marge Bot

parent
b3ce55b445
commit
bd8e84eb8d
@@ -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,
|
||||
|
Reference in New Issue
Block a user