diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2011-12-28 17:22:34 -0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-22 20:56:38 +0200 |
commit | 9b94570fdf085e4979b139a6f8ea3f9bab5a36a7 (patch) | |
tree | 1e3c82bb7dac5f6e8c82f9262da6120f8956423b /src/gui/painting/qdrawhelper_sse2.cpp | |
parent | 018cb899d482967eb7d8ebdc48cadf1743abe680 (diff) |
Add AVX support for the painting and image code.
There are no new routines, this is just the old SSE2 and SSSE3 code
compiled in AVX mode, meaning the instructions use the VEX prefix.
Change-Id: I79a8bfaf6b30a050618db899f5a3bbc220449f0b
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/painting/qdrawhelper_sse2.cpp')
-rw-r--r-- | src/gui/painting/qdrawhelper_sse2.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/painting/qdrawhelper_sse2.cpp b/src/gui/painting/qdrawhelper_sse2.cpp index 2c87aabe93..e44116570d 100644 --- a/src/gui/painting/qdrawhelper_sse2.cpp +++ b/src/gui/painting/qdrawhelper_sse2.cpp @@ -48,6 +48,8 @@ QT_BEGIN_NAMESPACE +#ifndef QDRAWHELPER_AVX +// in AVX mode, we'll use the SSSE3 code void qt_blend_argb32_on_argb32_sse2(uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int w, int h, @@ -83,6 +85,7 @@ void qt_blend_argb32_on_argb32_sse2(uchar *destPixels, int dbpl, } } } +#endif // qblendfunctions.cpp void qt_blend_rgb32_on_rgb32(uchar *destPixels, int dbpl, @@ -310,6 +313,7 @@ void QT_FASTCALL comp_func_solid_SourceOver_sse2(uint *destPixels, int length, u } } +#ifndef QDRAWHELPER_AVX CompositionFunctionSolid qt_functionForModeSolid_SSE2[numCompositionFunctions] = { comp_func_solid_SourceOver_sse2, comp_func_solid_DestinationOver, @@ -381,6 +385,7 @@ CompositionFunction qt_functionForMode_SSE2[numCompositionFunctions] = { rasterop_NotSourceAndDestination, rasterop_SourceAndNotDestination }; +#endif void qt_memfill16_sse2(quint16 *dest, quint16 value, int count) { |