From 14cf5c60b8274cf1a454c4d00b71cf9935494425 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 6 Jan 2017 10:55:07 -0800 Subject: vc4: Use unreachable() in an unreachable codepath for tiling. --- src/gallium/drivers/vc4/vc4_tiling.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/vc4/vc4_tiling.h b/src/gallium/drivers/vc4/vc4_tiling.h index 1da6ca63258..f035c06943f 100644 --- a/src/gallium/drivers/vc4/vc4_tiling.h +++ b/src/gallium/drivers/vc4/vc4_tiling.h @@ -38,8 +38,7 @@ vc4_utile_width(int cpp) case 8: return 2; default: - fprintf(stderr, "unknown cpp: %d\n", cpp); - abort(); + unreachable("unknown cpp"); } } @@ -55,8 +54,7 @@ vc4_utile_height(int cpp) case 8: return 4; default: - fprintf(stderr, "unknown cpp: %d\n", cpp); - abort(); + unreachable("unknown cpp"); } } -- cgit v1.2.3