Disable implementations mentioned in the PIXMAN_DISABLE environment variable.
authorSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 26 Jan 2011 18:16:09 +0000 (13:16 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 28 Feb 2012 20:46:13 +0000 (15:46 -0500)
commitfcea053561893d116a79f41a113993f1f61b58cf
treef4dbdd3b3040882814b7dcc70c7a858ede0bd136
parente7574d336b7c812a888fac22f99f1b0e9a3518b0
Disable implementations mentioned in the PIXMAN_DISABLE environment variable.

With this, it becomes possible to do

     PIXMAN_DISABLE="sse2 mmx" some_app

which will run some_app without SSE2 and MMX enabled. This is useful
for benchmarking, testing and narrowing down bugs.

The current list of implementations that can be disabled:

    fast
    mmx
    sse2
    arm-simd
    arm-iwmmxt
    arm-neon
    mips-dspr2
    vmx

The general and noop implementations can't be disabled because pixman
depends on those being available for correct operation.

Reviewed-by: Matt Turner <mattst88@gmail.com>
pixman/pixman-cpu.c