diff options
author | Eric Engestrom <[email protected]> | 2018-10-28 17:58:05 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-10-30 18:10:59 +0000 |
commit | 5c64847322ee6515e27eaa9c944a9afb4fefd4bc (patch) | |
tree | 975cc2d52c6840232711f8db9ce0e1098b4f8ed4 | |
parent | 2894e278cf366eb74bf9fc11cc5fc45c5cc0c360 (diff) |
i965: add missing case to fix -Wswitch
While at it, turn "unreachable" assert() into unreachable().
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_tiled_memcpy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c b/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c index b6bf96706f8..836f83d4a43 100644 --- a/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c +++ b/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c @@ -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; } |