From: Eric Anholt Date: Fri, 24 Jul 2020 03:38:11 +0000 (-0700) Subject: gallivm: Report the unsupported intrinsic instead of just assert(0); X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e7c006062ce1b95d527a50a03642cb532de5f04;p=mesa.git gallivm: Report the unsupported intrinsic instead of just assert(0); Tripped over this in rendermode with softpipe NIR. Reviewed-by: Jason Ekstrand Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c index bb04beeed12..f0f8a9c9518 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c @@ -1581,6 +1581,9 @@ static void visit_intrinsic(struct lp_build_nir_context *bld_base, visit_interp(bld_base, instr, result); break; default: + fprintf(stderr, "Unsupported intrinsic: "); + nir_print_instr(&instr->instr, stderr); + fprintf(stderr, "\n"); assert(0); break; }