i965: add missing case to fix -Wswitch

While at it, turn "unreachable" assert() into unreachable().

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Eric Engestrom 2018-10-28 17:58:05 +00:00
parent 2894e278cf
commit 5c64847322
1 changed files with 3 additions and 2 deletions

View File

@ -603,9 +603,10 @@ choose_copy_function(mem_copy_fn_type copy_type)
case INTEL_COPY_STREAMING_LOAD:
return _memcpy_streaming_load;
#endif
default:
assert(!"unreachable");
case INTEL_COPY_INVALID:
unreachable("invalid copy_type");
}
unreachable("unhandled copy_type");
return NULL;
}