summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-26 07:46:43 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-26 07:47:01 -0700
commit85cc78a6242723b5e2fc24e5784d9d9b47f7dc15 (patch)
tree00e40cd3b9c4520bbd042671a84241ad8fbc940d
parent218ce34962c2b563398a0ffbb3889b23e98a845f (diff)
pan/midgard, bifrost: Set lower_fdph = true
fdph instructions show up in some desktop GL shaders. Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r--src/panfrost/bifrost/bifrost_compile.h1
-rw-r--r--src/panfrost/midgard/midgard_compile.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost_compile.h b/src/panfrost/bifrost/bifrost_compile.h
index e687f64f7eb..d941b4ae8ab 100644
--- a/src/panfrost/bifrost/bifrost_compile.h
+++ b/src/panfrost/bifrost/bifrost_compile.h
@@ -49,6 +49,7 @@ static const nir_shader_compiler_options bifrost_nir_options = {
.lower_isign = true,
.lower_fsign = true,
.lower_ffract = true,
+ .lower_fdph = true,
.lower_pack_half_2x16 = true,
.lower_pack_unorm_2x16 = true,
.lower_pack_snorm_2x16 = true,
diff --git a/src/panfrost/midgard/midgard_compile.h b/src/panfrost/midgard/midgard_compile.h
index 2eb873f39e4..b5fbb3de6ed 100644
--- a/src/panfrost/midgard/midgard_compile.h
+++ b/src/panfrost/midgard/midgard_compile.h
@@ -130,6 +130,7 @@ static const nir_shader_compiler_options midgard_nir_options = {
.lower_isign = true,
.lower_fpow = true,
.lower_find_lsb = true,
+ .lower_fdph = true,
.lower_wpos_pntc = true,