pan/midgard, bifrost: Set lower_fdph = true
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 26 Aug 2019 14:46:43 +0000 (07:46 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 26 Aug 2019 14:47:01 +0000 (07:47 -0700)
fdph instructions show up in some desktop GL shaders.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/bifrost/bifrost_compile.h
src/panfrost/midgard/midgard_compile.h

index e687f64f7eb0472f955c90414469120f4c9ff0f9..d941b4ae8ab4a4a5b6e789c65f9543bcfb3cbffe 100644 (file)
@@ -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,
index 2eb873f39e4da92cdba52eeadda9830fcda0341c..b5fbb3de6ed4f23153d3506b4a2d9e1bafab4f4f 100644 (file)
@@ -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,