From fee6e51c140aba1f6758518247e2641551041e1c Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 13 Feb 2025 13:41:48 +0100 Subject: [PATCH] pan/bi: use unreachable instead of DBG + assert This error isn't particularly interesting to be able to toggle at runtime. Let's just use the unreachable macro instead. Reviewed-by: Iago Toral Quiroga Part-of: --- src/panfrost/compiler/bifrost_compile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/panfrost/compiler/bifrost_compile.c b/src/panfrost/compiler/bifrost_compile.c index ed4a410d1d9..f6cc6aa9537 100644 --- a/src/panfrost/compiler/bifrost_compile.c +++ b/src/panfrost/compiler/bifrost_compile.c @@ -3379,9 +3379,7 @@ bifrost_tex_format(enum glsl_sampler_dim dim) return 0; default: - DBG("Unknown sampler dim type\n"); - assert(0); - return 0; + unreachable("Unknown sampler dim type\n"); } }