diff options
author | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2015-03-27 11:32:27 +0100 |
---|---|---|
committer | Gunnar Sletta <gunnar@sletta.org> | 2015-05-13 08:43:51 +0000 |
commit | f98a5ca0c16670390e3b275ce3657dbc295b3dc4 (patch) | |
tree | ad22b3d32ff00f4c503af4c63069e485891a767f /tests/auto | |
parent | c331b6b90f14da9cbadb9309fe02baf32edd847a (diff) |
Enable mipmap test on all platforms, except early Mesa.
Change-Id: Ib6e17755cdb281de164c9eb79c3b0eeca391c291
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/quick/scenegraph/tst_scenegraph.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/auto/quick/scenegraph/tst_scenegraph.cpp b/tests/auto/quick/scenegraph/tst_scenegraph.cpp index f82163dcec..3e1285b7fe 100644 --- a/tests/auto/quick/scenegraph/tst_scenegraph.cpp +++ b/tests/auto/quick/scenegraph/tst_scenegraph.cpp @@ -103,6 +103,9 @@ private slots: void render(); void hideWithOtherContext(); + +private: + bool m_brokenMipmapSupport; }; template <typename T> class ScopedList : public QList<T> { @@ -138,12 +141,16 @@ void tst_SceneGraph::initTestCase() qDebug() << "Max Texture Size: " << textureSize; qDebug() << "GL_VENDOR: " << (const char *) funcs->glGetString(GL_VENDOR); qDebug() << "GL_RENDERER: " << (const char *) funcs->glGetString(GL_RENDERER); - qDebug() << "GL_VERSION: " << (const char *) funcs->glGetString(GL_VERSION); + QByteArray version = (const char *) funcs->glGetString(GL_VERSION); + qDebug() << "GL_VERSION: " << version.constData(); QSet<QByteArray> exts = context.extensions(); QByteArray all; foreach (const QByteArray &e, exts) all += ' ' + e; qDebug() << "GL_EXTENSIONS: " << all.constData(); + m_brokenMipmapSupport = version.contains("Mesa 10.1") || version.contains("Mesa 9."); + qDebug() << "Broken Mipmap: " << m_brokenMipmapSupport; + context.doneCurrent(); } @@ -408,13 +415,9 @@ void tst_SceneGraph::render_data() << "data/render_StackingOrder.qml" << "data/render_ImageFiltering.qml" << "data/render_bug37422.qml" - << "data/render_OpacityThroughBatchRoot.qml" -#if defined(Q_OS_OSX) || defined(Q_OS_WIN) - // We've had some problems with this particular test in the CI, so - // we'll leave it out for now.. - << "data/render_Mipmap.qml" -#endif - ; + << "data/render_OpacityThroughBatchRoot.qml"; + if (!m_brokenMipmapSupport) + files << "data/render_Mipmap.qml"; QRegExp sampleCount("#samples: *(\\d+)"); // X:int Y:int R:float G:float B:float Error:float |