From: Alyssa Rosenzweig Date: Tue, 11 Jun 2019 16:55:18 +0000 (-0700) Subject: panfrost/midgard: Assert on unknown texture source X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5062b612be79fad82b4f1b4adf4c30824cb6cff8;p=mesa.git panfrost/midgard: Assert on unknown texture source Signed-off-by: Alyssa Rosenzweig --- 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"); } }