pan/mdg: Skip z/s combining for dual-source writes
authorIcecream95 <ixn@keemail.me>
Fri, 10 Jul 2020 11:28:21 +0000 (23:28 +1200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Jul 2020 01:30:00 +0000 (01:30 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5620>

src/panfrost/midgard/midgard_compile.c

index c62e9a2ad5799fb0e01b94bf6d3e767d17483ed2..d8780dfd60b858a732fccd5cff5778a51e1c2fd8 100644 (file)
@@ -337,6 +337,9 @@ midgard_nir_lower_zs_store(nir_shader *nir)
                                     var->data.location < FRAG_RESULT_DATA0)
                                         continue;
 
+                                if (var->data.index)
+                                        continue;
+
                                 assert(nir_src_is_const(intr->src[1]) && "no indirect outputs");
 
                                 nir_builder b;