Skip to content

Commit

Permalink
Don't use S32A_D565_Opaque_arm, it causes FC's
Browse files Browse the repository at this point in the history
  • Loading branch information
birdiebnl committed Nov 10, 2011
1 parent 1332823 commit 8686ba6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion Android.mk
Expand Up @@ -218,9 +218,15 @@ LOCAL_SRC_FILES += \
ifeq ($(TARGET_ARCH),arm) ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -D__CPU_ARCH_ARM LOCAL_CFLAGS += -D__CPU_ARCH_ARM
LOCAL_SRC_FILES += \ LOCAL_SRC_FILES += \
src/opts/S32A_D565_Opaque_arm.S \
src/opts/S32A_Opaque_BlitRow32_arm.S \ src/opts/S32A_Opaque_BlitRow32_arm.S \
src/opts/S32A_Blend_BlitRow32_arm.S src/opts/S32A_Blend_BlitRow32_arm.S

ifeq ($(TARGET_BOARD_PLATFORM),rk2818)
LOCAL_CFLAGS += -DNO_S32A_D565_OPAQUE_ARM
else
LOCAL_SRC_FILES += \
src/opts/S32A_D565_Opaque_arm.S
endif
endif endif


ifeq "$(findstring armv5te-vfp,$(TARGET_ARCH_VARIANT))" "armv5te-vfp" ifeq "$(findstring armv5te-vfp,$(TARGET_ARCH_VARIANT))" "armv5te-vfp"
Expand Down
4 changes: 2 additions & 2 deletions src/core/SkBlitRow_D16.cpp
Expand Up @@ -204,7 +204,7 @@ static void S32A_D565_Blend_Dither(uint16_t* SK_RESTRICT dst,
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////


#if defined(__CPU_ARCH_ARM) && defined(SK_CPU_LENDIAN) #if defined(__CPU_ARCH_ARM) && defined(SK_CPU_LENDIAN) && !defined(NO_S32A_D565_OPAQUE_ARM)
extern "C" void S32A_D565_Opaque_arm(uint16_t*, uint32_t*, size_t); extern "C" void S32A_D565_Opaque_arm(uint16_t*, uint32_t*, size_t);
#endif #endif


Expand All @@ -213,7 +213,7 @@ static const SkBlitRow::Proc gDefault_565_Procs[] = {
S32_D565_Opaque, S32_D565_Opaque,
S32_D565_Blend, S32_D565_Blend,


#if defined(__CPU_ARCH_ARM) && defined(SK_CPU_LENDIAN) #if defined(__CPU_ARCH_ARM) && defined(SK_CPU_LENDIAN) && !defined(NO_S32A_D565_OPAQUE_ARM)
(SkBlitRow::Proc)S32A_D565_Opaque_arm, (SkBlitRow::Proc)S32A_D565_Opaque_arm,
#else #else
S32A_D565_Opaque, S32A_D565_Opaque,
Expand Down

0 comments on commit 8686ba6

Please sign in to comment.