summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2016-05-16 11:12:24 -0700
committerMatt Turner <[email protected]>2016-05-18 11:09:37 -0700
commit0a548eb56fba1ec7e32ea116d022327baaae8d21 (patch)
tree337041ee4ab744cae184b2261d6d2b23f226a7b3 /src/intel
parent7619aed41d6b677a05c1088aed3a6b6a70255496 (diff)
isl: Mark default cases in switch unreachable.
To silence -Wmaybe-uninitialized warnings.
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/isl/isl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index 6e492afe983..ca2db845a29 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -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");
}
}