pan/bi: Lower 64-bit ints again
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 2 Jun 2021 22:08:41 +0000 (18:08 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Jun 2021 18:06:10 +0000 (18:06 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>

src/panfrost/bifrost/bifrost_compile.c

index b27e45c..c2ed98e 100644 (file)
@@ -3075,6 +3075,10 @@ bi_optimize_nir(nir_shader *nir, unsigned gpu_id, bool is_blend)
                          nir_var_function_temp);
         } while (progress);
 
+        /* TODO: Why is 64-bit getting rematerialized?
+         * KHR-GLES31.core.shader_image_load_store.basic-allTargets-atomicFS */
+        NIR_PASS(progress, nir, nir_lower_int64);
+
         /* We need to cleanup after each iteration of late algebraic
          * optimizations, since otherwise NIR can produce weird edge cases
          * (like fneg of a constant) which we don't handle */