i965: add missing case to fix -Wswitch
authorEric Engestrom <eric.engestrom@intel.com>
Sun, 28 Oct 2018 17:58:05 +0000 (17:58 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 30 Oct 2018 18:10:59 +0000 (18:10 +0000)
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>
src/mesa/drivers/dri/i965/intel_tiled_memcpy.c

index b6bf96706f837606dcd61936b7c2f07caed2b0a1..836f83d4a43a45e76b48fd8ece25945000d8fb67 100644 (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;
 }