vc4: Use unreachable() in an unreachable codepath for tiling.
authorEric Anholt <eric@anholt.net>
Fri, 6 Jan 2017 18:55:07 +0000 (10:55 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 26 Jan 2017 20:23:31 +0000 (12:23 -0800)
src/gallium/drivers/vc4/vc4_tiling.h

index 1da6ca63258716001ea5a8d53ae0bcabbb78d4d8..f035c06943f1cc745f077b69b51fe45d889806a6 100644 (file)
@@ -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");
         }
 }