summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qdrawhelper.cpp
diff options
context:
space:
mode:
authorDamir Tatalovic <dtatalovic@mips.com>2012-04-04 17:54:58 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-16 04:25:04 +0200
commit7f3f3a0858ac743802b80cc5490747ae024b5574 (patch)
treea9930044731957901cdbb1f58ee776dc5d9e73a7 /src/gui/painting/qdrawhelper.cpp
parent0e7a52b539aa2d9d49cf8b4f7bd8e094d2598e84 (diff)
MIPS DSPR2 optimization of routine fetchUntransformedRGB16
Change-Id: I109deb969009214c4d81677e127f50120443acd2 Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/painting/qdrawhelper.cpp')
-rw-r--r--src/gui/painting/qdrawhelper.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp
index aaaf261d8f..3ba8381577 100644
--- a/src/gui/painting/qdrawhelper.cpp
+++ b/src/gui/painting/qdrawhelper.cpp
@@ -555,8 +555,12 @@ static const uint *QT_FASTCALL fetchUntransformedRGB16(uint *buffer, const Opera
int length)
{
const quint16 *scanLine = (const quint16 *)data->texture.scanLine(y) + x;
+#ifdef QT_HAVE_MIPS_DSPR2
+ qConvertRgb16To32_asm_mips_dspr2(buffer, scanLine, length);
+#else
for (int i = 0; i < length; ++i)
buffer[i] = qConvertRgb16To32(scanLine[i]);
+#endif
return buffer;
}