OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The Android Open Source Project | 2 * Copyright 2009 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBitmapFilter_opts_SSE2.h" | 8 #include "SkBitmapFilter_opts_SSE2.h" |
9 #include "SkBitmapProcState_opts_SSE2.h" | 9 #include "SkBitmapProcState_opts_SSE2.h" |
10 #include "SkBitmapProcState_opts_SSSE3.h" | 10 #include "SkBitmapProcState_opts_SSSE3.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 } | 209 } |
210 } | 210 } |
211 | 211 |
212 static SkBlitRow::Proc32 platform_32_procs_SSE2[] = { | 212 static SkBlitRow::Proc32 platform_32_procs_SSE2[] = { |
213 NULL, // S32_Opaque, | 213 NULL, // S32_Opaque, |
214 S32_Blend_BlitRow32_SSE2, // S32_Blend, | 214 S32_Blend_BlitRow32_SSE2, // S32_Blend, |
215 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque | 215 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque |
216 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, | 216 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, |
217 }; | 217 }; |
218 | 218 |
219 #if defined(SK_ATT_ASM_SUPPORTED) | 219 // Temporarily disable SSE4 procs while we sort out Valgrind errors. |
| 220 |
| 221 #if 0 && defined(SK_ATT_ASM_SUPPORTED) |
220 static SkBlitRow::Proc32 platform_32_procs_SSE4[] = { | 222 static SkBlitRow::Proc32 platform_32_procs_SSE4[] = { |
221 NULL, // S32_Opaque, | 223 NULL, // S32_Opaque, |
222 S32_Blend_BlitRow32_SSE2, // S32_Blend, | 224 S32_Blend_BlitRow32_SSE2, // S32_Blend, |
223 S32A_Opaque_BlitRow32_SSE4_asm, // S32A_Opaque | 225 S32A_Opaque_BlitRow32_SSE4_asm, // S32A_Opaque |
224 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, | 226 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, |
225 }; | 227 }; |
226 #endif | 228 #endif |
227 | 229 |
228 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { | 230 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { |
229 #if defined(SK_ATT_ASM_SUPPORTED) | 231 #if 0 && defined(SK_ATT_ASM_SUPPORTED) |
230 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { | 232 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { |
231 return platform_32_procs_SSE4[flags]; | 233 return platform_32_procs_SSE4[flags]; |
232 } else | 234 } else |
233 #endif | 235 #endif |
234 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | 236 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
235 return platform_32_procs_SSE2[flags]; | 237 return platform_32_procs_SSE2[flags]; |
236 } else { | 238 } else { |
237 return NULL; | 239 return NULL; |
238 } | 240 } |
239 } | 241 } |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 } else { | 389 } else { |
388 return SkPlatformXfermodeFactory_impl(rec, mode); | 390 return SkPlatformXfermodeFactory_impl(rec, mode); |
389 } | 391 } |
390 } | 392 } |
391 | 393 |
392 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); | 394 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
393 | 395 |
394 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { | 396 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
395 return NULL; | 397 return NULL; |
396 } | 398 } |
OLD | NEW |