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:
parent
2894e278cf
commit
5c64847322
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue