pan/bi: Lower fsqrt
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 10 Apr 2020 23:41:15 +0000 (19:41 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Apr 2020 15:44:31 +0000 (15:44 +0000)
For G72+ anyway. G71 will want something a bit more fine grained. I hope
this has enough precision for GL (the blob apparently does some exponent
fixup).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4530>

src/panfrost/bifrost/bifrost_compile.h

index ddfde64d4722b152459c1f6db04e9215ef177a6b..73e6847891c9a8aa84dd5605948bd52312bc0b22 100644 (file)
@@ -42,6 +42,7 @@ static const nir_shader_compiler_options bifrost_nir_options = {
         .lower_fpow = true,
         .lower_find_lsb = true,
         .lower_fdph = true,
+        .lower_fsqrt = true,
 
         .lower_wpos_pntc = true,
         .lower_fsign = true,