[Pixman] [PATCH 2/6] mmx: compile on MIPS for Loongson MMI optimizations

Søren Sandmann sandmann at cs.au.dk
Tue Feb 28 18:28:44 PST 2012


Matt Turner <mattst88 at gmail.com> writes:

> diff --git a/pixman/pixman-cpu.c b/pixman/pixman-cpu.c
> index 92942b2..1fc9faa 100644
> --- a/pixman/pixman-cpu.c
> +++ b/pixman/pixman-cpu.c
> @@ -690,7 +690,9 @@ _pixman_choose_implementation (void)
>      if (pixman_have_arm_iwmmxt ())
>  	imp = _pixman_implementation_create_mmx (imp);
>  #endif
> -
> +#ifdef USE_LOONGSON_MMI
> +    imp = _pixman_implementation_create_mmx (imp);
> +#endif

With the new disable functionality, that should be added here too.

Is it possible to detect MMI at runtime? Perhaps by parsing
/proc/cpuinfo like the DSPr2 code does?


Soren


More information about the Pixman mailing list