isl: Mark default cases unreachable.
authorMatt Turner <mattst88@gmail.com>
Tue, 24 May 2016 20:13:04 +0000 (13:13 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 25 May 2016 19:44:34 +0000 (12:44 -0700)
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/intel/isl/isl_surface_state.c

index cc9c94adf1ae5b6bd4eb9ca28dc62485e6799cd1..e96d3b05c3c5d3d5bef4c47667787983875ebd15 100644 (file)
@@ -166,7 +166,7 @@ get_qpitch(const struct isl_surf *surf)
 {
    switch (surf->dim) {
    default:
-      assert(!"Bad isl_surf_dim");
+      unreachable("Bad isl_surf_dim");
    case ISL_SURF_DIM_1D:
       if (GEN_GEN >= 9) {
          /* QPitch is usually expressed as rows of surface elements (where
@@ -363,7 +363,7 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
                                             info->view->base_level) - 1;
       break;
    default:
-      unreachable(!"bad SurfaceType");
+      unreachable("bad SurfaceType");
    }
 
    if (info->view->usage & ISL_SURF_USAGE_RENDER_TARGET_BIT) {