From 6493d29f2117d63d7949fc3888c2c5d901eaeb95 Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Tue, 14 Jul 2020 15:06:09 +1200 Subject: [PATCH] pan/mdg: Fix non-debug compiliation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes error when the assert is optimized out: ../src/panfrost/midgard/midgard_compile.c: In function ‘output_load_rt_addr’: ../src/panfrost/midgard/midgard_compile.c:1644:1: error: control reaches end of non-void function [-Werror=return-type] } Closes #3270 Fixes: 7781d2c2ead ("pan/mdg: Support MRT in output load lowering") Reviewed-by: Tomeu Vizoso Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 324e6278163..a535ccd266e 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -1640,7 +1640,7 @@ output_load_rt_addr(nir_shader *nir, nir_intrinsic_instr *instr) if (loc == FRAG_RESULT_STENCIL) return 0x1E; - assert(0); + unreachable("Invalid RT to load from"); } static void -- 2.30.2