diff options
author | Eric Anholt <[email protected]> | 2017-01-06 10:55:07 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-01-26 12:23:31 -0800 |
commit | 14cf5c60b8274cf1a454c4d00b71cf9935494425 (patch) | |
tree | 07ded093cf16ef3bc4d6407507d84953d6f0af0b /src | |
parent | eca96ea308dfba41c6bce9c90c79ad8d393e6bbc (diff) |
vc4: Use unreachable() in an unreachable codepath for tiling.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_tiling.h | 6 |
1 files changed, 2 insertions, 4 deletions
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"); } } |