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,