Revert "windows: Disable D3D9/11 with ANGLE in VMs"

This reverts commit a6000e2b6679d91c9dab44e49b485de6816372bc.

Temporarily remove this to unblock the qtdeclarative dev CI.

While Windows 8 VMs are fixed by this patch, Windows 7 has different
problems.

Change-Id: I45ef064ed953cc4b7bbf19657300d4fc43d82452
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
Laszlo Agocs 2015-06-22 18:54:16 +02:00 committed by Simon Hausmann
parent 9e139ce099
commit d40647922b
6 changed files with 5 additions and 45 deletions

View File

@ -141,7 +141,6 @@ static inline QString vendorIdKey() { return QStringLiteral("vendor_id"); }
static inline QString glVendorKey() { return QStringLiteral("gl_vendor"); } static inline QString glVendorKey() { return QStringLiteral("gl_vendor"); }
static inline QString deviceIdKey() { return QStringLiteral("device_id"); } static inline QString deviceIdKey() { return QStringLiteral("device_id"); }
static inline QString driverVersionKey() { return QStringLiteral("driver_version"); } static inline QString driverVersionKey() { return QStringLiteral("driver_version"); }
static inline QString driverDescriptionKey() { return QStringLiteral("driver_description"); }
static inline QString featuresKey() { return QStringLiteral("features"); } static inline QString featuresKey() { return QStringLiteral("features"); }
static inline QString idKey() { return QStringLiteral("id"); } static inline QString idKey() { return QStringLiteral("id"); }
static inline QString descriptionKey() { return QStringLiteral("description"); } static inline QString descriptionKey() { return QStringLiteral("description"); }
@ -337,15 +336,6 @@ static bool matches(const QJsonObject &object,
QLatin1String("Driver version must be of type object.")); QLatin1String("Driver version must be of type object."));
} }
} }
if (!gpu.driverDescription.isEmpty()) {
const QJsonValue driverDescriptionV = object.value(driverDescriptionKey());
if (driverDescriptionV.isString()) {
if (!gpu.driverDescription.contains(driverDescriptionV.toString().toUtf8()))
return false;
}
}
return true; return true;
} }

View File

@ -79,21 +79,19 @@ public:
bool isValid() const { return deviceId || !glVendor.isEmpty(); } bool isValid() const { return deviceId || !glVendor.isEmpty(); }
bool equals(const Gpu &other) const { bool equals(const Gpu &other) const {
return vendorId == other.vendorId && deviceId == other.deviceId && driverVersion == other.driverVersion return vendorId == other.vendorId && deviceId == other.deviceId && driverVersion == other.driverVersion
&& driverDescription == other.driverDescription && glVendor == other.glVendor; && glVendor == other.glVendor;
} }
uint vendorId; uint vendorId;
uint deviceId; uint deviceId;
QVersionNumber driverVersion; QVersionNumber driverVersion;
QByteArray driverDescription;
QByteArray glVendor; QByteArray glVendor;
static Gpu fromDevice(uint vendorId, uint deviceId, QVersionNumber driverVersion, const QByteArray &driverDescription) { static Gpu fromDevice(uint vendorId, uint deviceId, QVersionNumber driverVersion) {
Gpu gpu; Gpu gpu;
gpu.vendorId = vendorId; gpu.vendorId = vendorId;
gpu.deviceId = deviceId; gpu.deviceId = deviceId;
gpu.driverVersion = driverVersion; gpu.driverVersion = driverVersion;
gpu.driverDescription = driverDescription;
return gpu; return gpu;
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "Qt built-in GPU driver blacklist", "name": "Qt built-in GPU driver blacklist",
"version": "5.6", "version": "5.5",
"entries": [ "entries": [
{ {
"id": 1, "id": 1,
@ -17,16 +17,6 @@
"features": [ "features": [
"disable_desktopgl" "disable_desktopgl"
] ]
}, }
{
"id": 2,
"description": "Disable D3D9 and 11, and rely on software-only D3D in VMs",
"driver_description": "VMware SVGA 3D",
"features": [
"disable_d3d9",
"disable_d3d11"
]
}
] ]
} }

View File

@ -224,7 +224,7 @@ QWindowsOpenGLTester::Renderers QWindowsOpenGLTester::detectSupportedRenderers(c
#elif defined(Q_OS_WINCE) #elif defined(Q_OS_WINCE)
return QWindowsOpenGLTester::Gles; return QWindowsOpenGLTester::Gles;
#else #else
QOpenGLConfig::Gpu qgpu = QOpenGLConfig::Gpu::fromDevice(gpu.deviceId, gpu.vendorId, gpu.driverVersion, gpu.description); QOpenGLConfig::Gpu qgpu = QOpenGLConfig::Gpu::fromDevice(gpu.deviceId, gpu.vendorId, gpu.driverVersion);
SupportedRenderersCache *srCache = supportedRenderersCache(); SupportedRenderersCache *srCache = supportedRenderersCache();
SupportedRenderersCache::const_iterator it = srCache->find(qgpu); SupportedRenderersCache::const_iterator it = srCache->find(qgpu);
if (it != srCache->cend()) if (it != srCache->cend())

View File

@ -102,17 +102,6 @@
"feature1" "feature1"
] ]
}, },
{
"id": 7,
"description": "driver description test",
"driver_description": "Test",
"os": {
"type": "win"
},
"features": [
"feature2"
]
},
{ {
"id": 128, "id": 128,
"description": "check for matching GL_VENDOR", "description": "check for matching GL_VENDOR",

View File

@ -244,20 +244,13 @@ void tst_QOpenGlConfig::testBugList()
expectedFeatures << "feature1"; expectedFeatures << "feature1";
QVersionNumber driverVersion(QVector<int>() << 9 << 18 << 13 << 4460); QVersionNumber driverVersion(QVector<int>() << 9 << 18 << 13 << 4460);
QOpenGLConfig::Gpu gpu = QOpenGLConfig::Gpu::fromDevice(0x10DE, 0x0DE9, driverVersion, QByteArrayLiteral("Unknown")); QOpenGLConfig::Gpu gpu = QOpenGLConfig::Gpu::fromDevice(0x10DE, 0x0DE9, driverVersion);
QSet<QString> actualFeatures = QOpenGLConfig::gpuFeatures(gpu, QStringLiteral("win"), QSet<QString> actualFeatures = QOpenGLConfig::gpuFeatures(gpu, QStringLiteral("win"),
QVersionNumber(6, 3), fileName); QVersionNumber(6, 3), fileName);
QVERIFY2(expectedFeatures == actualFeatures, QVERIFY2(expectedFeatures == actualFeatures,
msgSetMismatch(expectedFeatures, actualFeatures)); msgSetMismatch(expectedFeatures, actualFeatures));
gpu = QOpenGLConfig::Gpu::fromDevice(0xDEAD, 0xBEEF, driverVersion, QByteArrayLiteral("Test"));
actualFeatures = QOpenGLConfig::gpuFeatures(gpu, QStringLiteral("win"),
QVersionNumber(6, 3), fileName);
expectedFeatures = QSet<QString>() << "feature2";
QVERIFY2(expectedFeatures == actualFeatures,
msgSetMismatch(expectedFeatures, actualFeatures));
gpu = QOpenGLConfig::Gpu::fromGLVendor(QByteArrayLiteral("Somebody Else")); gpu = QOpenGLConfig::Gpu::fromGLVendor(QByteArrayLiteral("Somebody Else"));
expectedFeatures.clear(); expectedFeatures.clear();
actualFeatures = QOpenGLConfig::gpuFeatures(gpu, QStringLiteral("linux"), actualFeatures = QOpenGLConfig::gpuFeatures(gpu, QStringLiteral("linux"),