Index: src/opts/opts_check_x86.cpp |
diff --git a/src/opts/opts_check_x86.cpp b/src/opts/opts_check_x86.cpp |
index 34aae928eb18e07d17669bb3cd3cc4b37c52831d..84041d05b0c8ba32494431f5c3c7ac1d94b9f854 100644 |
--- a/src/opts/opts_check_x86.cpp |
+++ b/src/opts/opts_check_x86.cpp |
@@ -176,7 +176,11 @@ void SkBitmapProcState::platformProcs() { |
/* Check fSampleProc16 */ |
if (fSampleProc16 == S32_D16_filter_DX) { |
- fSampleProc16 = S32_D16_filter_DX_SSE2; |
+ if (ssse3) { |
+ fSampleProc16 = S32_D16_filter_DX_SSSE3; |
+ } else { |
+ fSampleProc16 = S32_D16_filter_DX_SSE2; |
+ } |
} else if (ssse3 && fSampleProc16 == S32_D16_filter_DXDY) { |
fSampleProc16 = S32_D16_filter_DXDY_SSSE3; |
} |