diff options
author | Daniel Schürmann <daniel@schuermann.dev> | 2020-09-04 11:24:26 +0100 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-01-11 19:13:51 +0000 |
commit | bd8e84eb8d505b755522680f478234eb0e067562 (patch) | |
tree | 9a73ff0d27245725a3c7ac78674a24129fa10910 /src/panfrost/midgard/midgard_compile.h | |
parent | b3ce55b4452d120c36063c2265f9fe4c7c07975a (diff) |
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>
Diffstat (limited to 'src/panfrost/midgard/midgard_compile.h')
-rw-r--r-- | src/panfrost/midgard/midgard_compile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_compile.h b/src/panfrost/midgard/midgard_compile.h index 3b393998393..71314f66c0b 100644 --- a/src/panfrost/midgard/midgard_compile.h +++ b/src/panfrost/midgard/midgard_compile.h @@ -78,6 +78,8 @@ static const nir_shader_compiler_options midgard_nir_options = { .lower_doubles_options = nir_lower_dmod, .lower_bitfield_extract_to_shifts = true, + .has_fsub = true, + .has_isub = true, .vectorize_io = true, .use_interpolated_input_intrinsics = true, |