From 85cc78a6242723b5e2fc24e5784d9d9b47f7dc15 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 26 Aug 2019 07:46:43 -0700 Subject: [PATCH] pan/midgard, bifrost: Set lower_fdph = true fdph instructions show up in some desktop GL shaders. Signed-off-by: Alyssa Rosenzweig --- src/panfrost/bifrost/bifrost_compile.h | 1 + src/panfrost/midgard/midgard_compile.h | 1 + 2 files changed, 2 insertions(+) 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, -- 2.30.2