components/desktop/firefox/patches/firefox-20-gfx.patch
author Stacy Yeh <stacy.yeh@oracle.com>
Tue, 01 Mar 2016 12:56:53 -0800
changeset 5527 611b2d6efdfe
parent 5255 components/desktop/firefox/patches/firefox29-214-gfx.patch@cea0e462549a
permissions -rw-r--r--
21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes 22757279 Update Thunderbird to version 38.5.0 22613259 thunderbird lightning extension is missing l10n after moved to userland 21133062 problem in TBIRD/MAILER

Compiler specific. Can potentially send upstream with an ifdef Solaris
statement. 

diff --git a/gfx/2d/FilterProcessingSIMD-inl.h b/gfx/2d/FilterProcessingSIMD-inl.h
--- a/gfx/2d/FilterProcessingSIMD-inl.h
+++ b/gfx/2d/FilterProcessingSIMD-inl.h
@@ -490,7 +490,7 @@
   // int16_t rows_ra[8] == { rB, rG, rR, rA, aB, aG, aR, aA }.
   // int32_t bias[4] == { _B, _G, _R, _A }.
 
-  i32x4_t sum = bias;
+  i32x4_t sum = (i32x4_t)bias;
 
   // int16_t bg[8] = { b, g, b, g, b, g, b, g };
   i16x8_t bg = simd::ShuffleHi16<1,0,1,0>(simd::ShuffleLo16<1,0,1,0>(p));
diff --git a/gfx/2d/SIMD.h b/gfx/2d/SIMD.h
--- a/gfx/2d/SIMD.h
+++ b/gfx/2d/SIMD.h
@@ -10,8 +10,8 @@
  * Consumers of this file need to #define SIMD_COMPILE_SSE2 before including it
  * if they want access to the SSE2 functions.
  */
-
 #ifdef SIMD_COMPILE_SSE2
+#include <emmintrin.h>
 #include <xmmintrin.h>
 #endif