isl: Mark default cases in switch unreachable.

To silence -Wmaybe-uninitialized warnings.
This commit is contained in:
Matt Turner
2016-05-16 11:12:24 -07:00
parent 7619aed41d
commit 0a548eb56f
+6
View File
@@ -151,6 +151,9 @@ isl_tiling_get_info(const struct isl_device *dev,
height = 1 << (6 - (ffs(bs) / 2) + (2 * is_Ys));
break;
}
default:
unreachable("not reached");
} /* end switch */
*tile_info = (struct isl_tile_info) {
@@ -1387,6 +1390,9 @@ get_image_offset_sa(const struct isl_surf *surf,
get_image_offset_sa_gen4_3d(surf, level, logical_z_offset_px,
x_offset_sa, y_offset_sa);
break;
default:
unreachable("not reached");
}
}