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
Pick-to: 6.8
Change-Id: I4a7e64e464ea04409154be2e7b3135ecd88a29fc
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Lauri Pohjanheimo 2025-01-08 16:23:02 +02:00
parent ebbf2d298b
commit 3fe904e231
2 changed files with 7 additions and 2 deletions

View File

@ -13,7 +13,5 @@ android
# Ditto
[renderToFloatTexture]
android
[renderToRgb10Texture]
android
[tessellation vulkan]
android

View File

@ -6113,6 +6113,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<QRhiTexture> texture(rhi->newTexture(QRhiTexture::RGB10A2, outputSize, 1,
QRhiTexture::RenderTarget | QRhiTexture::UsedAsTransferSource));