Module: Mesa
Branch: master
Commit: 6e7c006062ce1b95d527a50a03642cb532de5f04
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e7c006062ce1b95d527a50a03642cb532de5f04

Author: Eric Anholt <[email protected]>
Date:   Thu Jul 23 20:38:11 2020 -0700

gallivm: Report the unsupported intrinsic instead of just assert(0);

Tripped over this in rendermode with softpipe NIR.

Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6567>

---

 src/gallium/auxiliary/gallivm/lp_bld_nir.c | 3 +++
 1 file changed, 3 insertions(+)

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;
    }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to