Mesa (main): r600: Switch to unreachable(..)

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 29 21:32:38 UTC 2022


Module: Mesa
Branch: main
Commit: d4922c0dfbb6dd11d09d523a4a4eaba272d50fef
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4922c0dfbb6dd11d09d523a4a4eaba272d50fef

Author: Christian Gmeiner <christian.gmeiner at gmail.com>
Date:   Sat Jun 18 18:54:48 2022 +0200

r600: Switch to unreachable(..)

Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
Reviewed-by: Gert Wollny <gert.wollny at collabora.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17121>

---

 src/gallium/drivers/r600/r600_state_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index 0bd5eebfb73..c0ff0b8bd87 100644
--- a/src/gallium/drivers/r600/r600_state_common.c
+++ b/src/gallium/drivers/r600/r600_state_common.c
@@ -1014,7 +1014,7 @@ static void *r600_create_shader_state(struct pipe_context *ctx,
 	else if (state->type == PIPE_SHADER_IR_NIR) {
 		sel = r600_create_shader_state_tokens(ctx, state->ir.nir, state->type, pipe_shader_type);
 	} else
-		assert(0 && "Unknown shader type\n");
+		unreachable("Unknown shader type");
 	
 	sel->so = state->stream_output;
 



More information about the mesa-commit mailing list