From: Alyssa Rosenzweig Date: Mon, 26 Aug 2019 14:46:43 +0000 (-0700) Subject: pan/midgard, bifrost: Set lower_fdph = true X-Git-Tag: upstream/19.3.0~2501 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85cc78a6242723b5e2fc24e5784d9d9b47f7dc15;p=platform%2Fupstream%2Fmesa.git pan/midgard, bifrost: Set lower_fdph = true fdph instructions show up in some desktop GL shaders. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/panfrost/bifrost/bifrost_compile.h b/src/panfrost/bifrost/bifrost_compile.h index e687f64..d941b4a 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 2eb873f..b5fbb3d 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,