From: Eric Anholt Date: Fri, 6 Jan 2017 18:55:07 +0000 (-0800) Subject: vc4: Use unreachable() in an unreachable codepath for tiling. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14cf5c60b8274cf1a454c4d00b71cf9935494425;p=mesa.git vc4: Use unreachable() in an unreachable codepath for tiling. --- 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"); } }