i965: Fix -Wswitch on INTEL_COPY_STREAMING_LOAD
authorChad Versace <chadversary@chromium.org>
Thu, 8 Nov 2018 20:55:35 +0000 (12:55 -0800)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 3 Dec 2018 11:07:56 +0000 (13:07 +0200)
The warning is emitted when building without INLINE_SSE41.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/mesa/drivers/dri/i965/intel_tiled_memcpy.c

index 836f83d4a43a45e76b48fd8ece25945000d8fb67..f9cc020d338599f42d36308dca7e6dc563816810 100644 (file)
@@ -599,9 +599,11 @@ choose_copy_function(mem_copy_fn_type copy_type)
       return memcpy;
    case INTEL_COPY_RGBA8:
       return rgba8_copy;
-#if defined(INLINE_SSE41)
    case INTEL_COPY_STREAMING_LOAD:
+#if defined(INLINE_SSE41)
       return _memcpy_streaming_load;
+#else
+      unreachable("INTEL_COPY_STREAMING_LOAD requires sse4.1");
 #endif
    case INTEL_COPY_INVALID:
       unreachable("invalid copy_type");