Mesa (main): pan/mdg: Assert that we don't see unknown jumps
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Feb 18 15:28:39 UTC 2022
Module: Mesa
Branch: main
Commit: 0e726d918f4c55fcd4324505b7338d21205cef74
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e726d918f4c55fcd4324505b7338d21205cef74
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Fri Feb 4 18:25:21 2022 -0500
pan/mdg: Assert that we don't see unknown jumps
I still don't understand why we don't see continues. But in case we do, scream
loudly so it can't be fixed.
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14888>
---
src/panfrost/midgard/midgard_compile.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index a255044e674..7ccc2f2c89e 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -2538,8 +2538,7 @@ emit_jump(compiler_context *ctx, nir_jump_instr *instr)
}
default:
- DBG("Unknown jump type %d\n", instr->type);
- break;
+ unreachable("Unhandled jump");
}
}
More information about the mesa-commit
mailing list