summaryrefslogtreecommitdiff
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorDaniel Schürmann <daniel@schuermann.dev>2020-09-04 11:24:26 +0100
committerMarge Bot <eric+marge@anholt.net>2021-01-11 19:13:51 +0000
commitbd8e84eb8d505b755522680f478234eb0e067562 (patch)
tree9a73ff0d27245725a3c7ac78674a24129fa10910 /src/panfrost/midgard
parentb3ce55b4452d120c36063c2265f9fe4c7c07975a (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')
-rw-r--r--src/panfrost/midgard/midgard_compile.h2
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,