From 5062b612be79fad82b4f1b4adf4c30824cb6cff8 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 11 Jun 2019 09:55:18 -0700 Subject: [PATCH] panfrost/midgard: Assert on unknown texture source Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/midgard/midgard_compile.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index 4bddea40fdb..6761b276814 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c +++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c @@ -1394,11 +1394,8 @@ emit_tex(compiler_context *ctx, nir_tex_instr *instr) break; }; - default: { - DBG("Unknown source type\n"); - //assert(0); - break; - } + default: + unreachable("Unknown texture source type\n"); } } -- 2.30.2