From 334dab057651f41203eba0a2595a636e6881d82c Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Fri, 10 Jul 2020 23:28:21 +1200 Subject: [PATCH] pan/mdg: Skip z/s combining for dual-source writes Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard_compile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index c62e9a2ad57..d8780dfd60b 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -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; -- 2.30.2