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 <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33710>
This commit is contained in:
Erik Faye-Lund
2025-02-13 13:41:48 +01:00
committed by Marge Bot
parent 67c150bf9e
commit fee6e51c14
+1 -3
View File
@@ -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");
}
}