[Pixman] [PATCH 2/6] mmx: compile on MIPS for Loongson MMI optimizations
Matt Turner
mattst88 at gmail.com
Tue Feb 28 18:58:12 PST 2012
On Tue, Feb 28, 2012 at 9:28 PM, Søren Sandmann <sandmann at cs.au.dk> wrote:
> 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.
Indeed.
> Is it possible to detect MMI at runtime? Perhaps by parsing
> /proc/cpuinfo like the DSPr2 code does?
Yeah, I guess I can add that.
More information about the Pixman
mailing list