From 7fcd6c1aef99fe471351623cc09664da70b49e32 Mon Sep 17 00:00:00 2001 From: Lauri Pohjanheimo Date: Wed, 8 Jan 2025 16:23:02 +0200 Subject: [PATCH] RenderToRgb10Texture test unblacklisted On CI an Android emulator with SwiftShader software graphics implementation is used. SwiftShader implementation is unable to emulate this OpenGL functionality. Blacklisting removed. QSKIP the test if it is run in Android platform, OpenGL and SwiftShader sw graphics implementation is found. Task-number: QTQAINFRA-6331 Change-Id: I4a7e64e464ea04409154be2e7b3135ecd88a29fc Reviewed-by: Assam Boudjelthia (cherry picked from commit 3fe904e23199fe73637425a26bb81dbbf069b2f7) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/gui/rhi/qrhi/BLACKLIST | 2 -- tests/auto/gui/rhi/qrhi/tst_qrhi.cpp | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/auto/gui/rhi/qrhi/BLACKLIST b/tests/auto/gui/rhi/qrhi/BLACKLIST index b3284f89795..6386075cae4 100644 --- a/tests/auto/gui/rhi/qrhi/BLACKLIST +++ b/tests/auto/gui/rhi/qrhi/BLACKLIST @@ -15,7 +15,5 @@ android android [renderToFloatTexture] android -[renderToRgb10Texture] -android [tessellation vulkan] android diff --git a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp index 8929b69cec5..dcf2e0275a0 100644 --- a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp +++ b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp @@ -5959,6 +5959,13 @@ void tst_QRhi::renderToRgb10Texture() if (!rhi->isTextureFormatSupported(QRhiTexture::RGB10A2)) QSKIP("RGB10A2 is not supported, skipping test"); +#ifdef Q_OS_ANDROID + if (impl == QRhi::OpenGLES2) { + if (rhi->driverInfo().deviceName.contains("SwiftShader")) + QSKIP("SwiftShader software acceleration is used which does not support this OpenGLES feature. See QTBUG-132934"); + } +#endif + const QSize outputSize(1920, 1080); QScopedPointer texture(rhi->newTexture(QRhiTexture::RGB10A2, outputSize, 1, QRhiTexture::RenderTarget | QRhiTexture::UsedAsTransferSource));