mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
isl: Mark default cases unreachable.
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
47dca31606
commit
469a1c56a6
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue