Module: Mesa
Branch: master
Commit: 14cf5c60b8274cf1a454c4d00b71cf9935494425
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=14cf5c60b8274cf1a454c4d00b71cf9935494425

Author: Eric Anholt <[email protected]>
Date:   Fri Jan  6 10:55:07 2017 -0800

vc4: Use unreachable() in an unreachable codepath for tiling.

---

 src/gallium/drivers/vc4/vc4_tiling.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/vc4/vc4_tiling.h 
b/src/gallium/drivers/vc4/vc4_tiling.h
index 1da6ca6..f035c06 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");
         }
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to