diff options
author | Matt Turner <[email protected]> | 2016-05-24 13:13:04 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2016-05-25 12:44:34 -0700 |
commit | 469a1c56a68e8b2c1d55756868ca1951c383500b (patch) | |
tree | 9e76824e28fcbfae4c5f0046f3e2c74f81f98c2c /src | |
parent | 47dca316065e02ab27200e50f245f36ca95ffc01 (diff) |
isl: Mark default cases unreachable.
Reviewed-by: Anuj Phogat <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/isl/isl_surface_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index cc9c94adf1a..e96d3b05c3c 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -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) { |