diff options
author | Tomeu Vizoso <[email protected]> | 2019-12-19 15:07:39 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-31 06:02:31 +0000 |
commit | 226c1efe9a8b7a4f1802ab13f249dc06b2bd7d3d (patch) | |
tree | 4e04698d8081a0ffd925c90d31726b315f3c163e /src/panfrost | |
parent | 2d5c433aeeeb083f1a5902d58e520614d2fe35be (diff) |
panfrost: Add more info to some assertions
Signed-off-by: Tomeu Vizoso <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3625>
Diffstat (limited to 'src/panfrost')
-rw-r--r-- | src/panfrost/midgard/midgard_compile.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 0ec1b5c19c9..d66045b3551 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -1672,7 +1672,7 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr) break; default: - printf ("Unhandled intrinsic\n"); + printf ("Unhandled intrinsic: %d\n", instr->intrinsic); assert(0); break; } @@ -1925,8 +1925,10 @@ emit_texop_native(compiler_context *ctx, nir_tex_instr *instr, break; } - default: - unreachable("Unknown texture source type\n"); + default: { + printf ("Unknown texture source type: %d\n", instr->src[i].src_type); + assert(0); + } } } @@ -1953,8 +1955,10 @@ emit_tex(compiler_context *ctx, nir_tex_instr *instr) case nir_texop_txs: emit_sysval_read(ctx, &instr->instr, ~0, 4); break; - default: - unreachable("Unhanlded texture op"); + default: { + printf ("Unhandled texture op: %d\n", instr->op); + assert(0); + } } } |