gfx/cairo/pixman-enable-altivec-acceleration.patch

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 # HG changeset patch
     2 # Parent d0b3d7af190b3c62397ece2bc33b429d903e455d
     4 diff -r d0b3d7af190b gfx/cairo/libpixman/src/Makefile.in
     5 --- a/gfx/cairo/libpixman/src/Makefile.in	Sat Nov 24 14:26:11 2012 +0100
     6 +++ b/gfx/cairo/libpixman/src/Makefile.in	Thu Nov 29 22:20:59 2012 +0100
     7 @@ -42,6 +42,10 @@
     8  endif
    10  ifdef GNU_CC
    11 +ifeq (ppc,$(findstring ppc,$(OS_TEST)))
    12 +USE_VMX=1
    13 +VMX_CFLAGS=-maltivec
    14 +endif
    15  ifeq (86,$(findstring 86,$(OS_TEST)))
    16  USE_MMX=1
    17  MMX_CFLAGS=-mmmx -Winline
    18 @@ -156,3 +160,6 @@
    19  pixman-sse2.$(OBJ_SUFFIX): COMPILE_CFLAGS += $(SSE2_CFLAGS)
    21  pixman-arm-neon.$(OBJ_SUFFIX): COMPILE_CFLAGS += $(ARM_NEON_CFLAGS)
    22 +
    23 +pixman-vmx.$(OBJ_SUFFIX): COMPILE_CFLAGS += $(VMX_CFLAGS)
    24 +
    25 diff -r d0b3d7af190b gfx/cairo/libpixman/src/pixman-vmx.c
    26 --- a/gfx/cairo/libpixman/src/pixman-vmx.c	Sat Nov 24 14:26:11 2012 +0100
    27 +++ b/gfx/cairo/libpixman/src/pixman-vmx.c	Thu Nov 29 22:20:59 2012 +0100
    28 @@ -25,7 +25,10 @@
    29   * Based on fbmmx.c by Owen Taylor, Søren Sandmann and Nicholas Miell
    30   */
    32 +#ifdef HAVE_CONFIG_H
    33  #include <config.h>
    34 +#endif
    35 +
    36  #include "pixman-private.h"
    37  #include "pixman-combine32.h"
    38  #include <altivec.h>

mercurial