Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6
#include "mozilla/ArrayUtils.h"
7
8
#include <windows.h>
9
#include <devguid.h> // for GUID_DEVCLASS_BATTERY
10
#include <setupapi.h> // for SetupDi*
11
#include <winioctl.h> // for IOCTL_*
12
#include <batclass.h> // for BATTERY_*
13
#include "gfxConfig.h"
14
#include "gfxWindowsPlatform.h"
15
#include "GfxInfo.h"
16
#include "nsUnicharUtils.h"
17
#include "prenv.h"
18
#include "prprf.h"
19
#include "GfxDriverInfo.h"
20
#include "mozilla/Preferences.h"
21
#include "mozilla/gfx/DeviceManagerDx.h"
22
#include "mozilla/gfx/Logging.h"
23
#include "mozilla/SSE.h"
24
#include "nsExceptionHandler.h"
25
#include "nsPrintfCString.h"
26
#include "jsapi.h"
27
#include <intrin.h>
28
29
#define NS_CRASHREPORTER_CONTRACTID "@mozilla.org/toolkit/crash-reporter;1"
30
31
using namespace mozilla;
32
using namespace mozilla::gfx;
33
using namespace mozilla::widget;
34
35
#ifdef DEBUG
36
NS_IMPL_ISUPPORTS_INHERITED(GfxInfo, GfxInfoBase, nsIGfxInfoDebug)
37
#endif
38
39
GfxInfo::GfxInfo()
40
: mWindowsVersion(0),
41
mWindowsBuildNumber(0),
42
mActiveGPUIndex(0),
43
mHasDualGPU(false),
44
mHasBattery(false) {}
45
46
/* GetD2DEnabled and GetDwriteEnabled shouldn't be called until after
47
* gfxPlatform initialization has occurred because they depend on it for
48
* information. (See bug 591561) */
49
nsresult GfxInfo::GetD2DEnabled(bool* aEnabled) {
50
// Telemetry queries this during XPCOM initialization, and there's no
51
// gfxPlatform by then. Just bail out if gfxPlatform isn't initialized.
52
if (!gfxPlatform::Initialized()) {
53
*aEnabled = false;
54
return NS_OK;
55
}
56
57
// We check gfxConfig rather than the actual render mode, since the UI
58
// process does not use Direct2D if the GPU process is enabled. However,
59
// content processes can still use Direct2D.
60
*aEnabled = gfx::gfxConfig::IsEnabled(gfx::Feature::DIRECT2D);
61
return NS_OK;
62
}
63
64
nsresult GfxInfo::GetDWriteEnabled(bool* aEnabled) {
65
*aEnabled = gfxWindowsPlatform::GetPlatform()->DWriteEnabled();
66
return NS_OK;
67
}
68
69
NS_IMETHODIMP
70
GfxInfo::GetDWriteVersion(nsAString& aDwriteVersion) {
71
gfxWindowsPlatform::GetDLLVersion(L"dwrite.dll", aDwriteVersion);
72
return NS_OK;
73
}
74
75
NS_IMETHODIMP
76
GfxInfo::GetHasBattery(bool* aHasBattery) {
77
*aHasBattery = mHasBattery;
78
return NS_OK;
79
}
80
81
#define PIXEL_STRUCT_RGB 1
82
#define PIXEL_STRUCT_BGR 2
83
84
NS_IMETHODIMP
85
GfxInfo::GetCleartypeParameters(nsAString& aCleartypeParams) {
86
nsTArray<ClearTypeParameterInfo> clearTypeParams;
87
88
gfxWindowsPlatform::GetPlatform()->GetCleartypeParams(clearTypeParams);
89
uint32_t d, numDisplays = clearTypeParams.Length();
90
bool displayNames = (numDisplays > 1);
91
bool foundData = false;
92
nsString outStr;
93
94
for (d = 0; d < numDisplays; d++) {
95
ClearTypeParameterInfo& params = clearTypeParams[d];
96
97
if (displayNames) {
98
outStr.AppendPrintf("%S [ ", params.displayName.get());
99
}
100
101
if (params.gamma >= 0) {
102
foundData = true;
103
outStr.AppendPrintf("Gamma: %.4g ", params.gamma / 1000.0);
104
}
105
106
if (params.pixelStructure >= 0) {
107
foundData = true;
108
if (params.pixelStructure == PIXEL_STRUCT_RGB ||
109
params.pixelStructure == PIXEL_STRUCT_BGR) {
110
outStr.AppendPrintf(
111
"Pixel Structure: %S ",
112
(params.pixelStructure == PIXEL_STRUCT_RGB ? u"RGB" : u"BGR"));
113
} else {
114
outStr.AppendPrintf("Pixel Structure: %d ", params.pixelStructure);
115
}
116
}
117
118
if (params.clearTypeLevel >= 0) {
119
foundData = true;
120
outStr.AppendPrintf("ClearType Level: %d ", params.clearTypeLevel);
121
}
122
123
if (params.enhancedContrast >= 0) {
124
foundData = true;
125
outStr.AppendPrintf("Enhanced Contrast: %d ", params.enhancedContrast);
126
}
127
128
if (displayNames) {
129
outStr.Append(u"] ");
130
}
131
}
132
133
if (foundData) {
134
aCleartypeParams.Assign(outStr);
135
return NS_OK;
136
}
137
return NS_ERROR_FAILURE;
138
}
139
140
NS_IMETHODIMP
141
GfxInfo::GetWindowProtocol(nsAString& aWindowProtocol) {
142
return NS_ERROR_NOT_IMPLEMENTED;
143
}
144
145
NS_IMETHODIMP
146
GfxInfo::GetDesktopEnvironment(nsAString& aDesktopEnvironment) {
147
return NS_ERROR_NOT_IMPLEMENTED;
148
}
149
150
static nsresult GetKeyValue(const WCHAR* keyLocation, const WCHAR* keyName,
151
uint32_t& destValue, int type) {
152
MOZ_ASSERT(type == REG_DWORD || type == REG_QWORD);
153
HKEY key;
154
DWORD dwcbData;
155
DWORD dValue;
156
DWORD resultType;
157
LONG result;
158
nsresult retval = NS_OK;
159
160
result =
161
RegOpenKeyExW(HKEY_LOCAL_MACHINE, keyLocation, 0, KEY_QUERY_VALUE, &key);
162
if (result != ERROR_SUCCESS) {
163
return NS_ERROR_FAILURE;
164
}
165
166
switch (type) {
167
case REG_DWORD: {
168
// We only use this for vram size
169
dwcbData = sizeof(dValue);
170
result = RegQueryValueExW(key, keyName, nullptr, &resultType,
171
(LPBYTE)&dValue, &dwcbData);
172
if (result == ERROR_SUCCESS && resultType == REG_DWORD) {
173
destValue = (uint32_t)(dValue / 1024 / 1024);
174
} else {
175
retval = NS_ERROR_FAILURE;
176
}
177
break;
178
}
179
case REG_QWORD: {
180
// We only use this for vram size
181
LONGLONG qValue;
182
dwcbData = sizeof(qValue);
183
result = RegQueryValueExW(key, keyName, nullptr, &resultType,
184
(LPBYTE)&qValue, &dwcbData);
185
if (result == ERROR_SUCCESS && resultType == REG_QWORD) {
186
destValue = (uint32_t)(qValue / 1024 / 1024);
187
} else {
188
retval = NS_ERROR_FAILURE;
189
}
190
break;
191
}
192
}
193
RegCloseKey(key);
194
195
return retval;
196
}
197
198
static nsresult GetKeyValue(const WCHAR* keyLocation, const WCHAR* keyName,
199
nsAString& destString, int type) {
200
MOZ_ASSERT(type == REG_MULTI_SZ);
201
202
HKEY key;
203
DWORD dwcbData;
204
DWORD resultType;
205
LONG result;
206
nsresult retval = NS_OK;
207
208
result =
209
RegOpenKeyExW(HKEY_LOCAL_MACHINE, keyLocation, 0, KEY_QUERY_VALUE, &key);
210
if (result != ERROR_SUCCESS) {
211
return NS_ERROR_FAILURE;
212
}
213
214
// A chain of null-separated strings; we convert the nulls to spaces
215
WCHAR wCharValue[1024];
216
dwcbData = sizeof(wCharValue);
217
218
result = RegQueryValueExW(key, keyName, nullptr, &resultType,
219
(LPBYTE)wCharValue, &dwcbData);
220
if (result == ERROR_SUCCESS && resultType == REG_MULTI_SZ) {
221
// This bit here could probably be cleaner.
222
bool isValid = false;
223
224
DWORD strLen = dwcbData / sizeof(wCharValue[0]);
225
for (DWORD i = 0; i < strLen; i++) {
226
if (wCharValue[i] == '\0') {
227
if (i < strLen - 1 && wCharValue[i + 1] == '\0') {
228
isValid = true;
229
break;
230
} else {
231
wCharValue[i] = ' ';
232
}
233
}
234
}
235
236
// ensure wCharValue is null terminated
237
wCharValue[strLen - 1] = '\0';
238
239
if (isValid) destString = wCharValue;
240
241
} else {
242
retval = NS_ERROR_FAILURE;
243
}
244
245
RegCloseKey(key);
246
247
return retval;
248
}
249
250
static nsresult GetKeyValues(const WCHAR* keyLocation, const WCHAR* keyName,
251
nsTArray<nsString>& destStrings) {
252
// First ask for the size of the value
253
DWORD size;
254
LONG rv = RegGetValueW(HKEY_LOCAL_MACHINE, keyLocation, keyName,
255
RRF_RT_REG_MULTI_SZ, nullptr, nullptr, &size);
256
if (rv != ERROR_SUCCESS) {
257
return NS_ERROR_FAILURE;
258
}
259
260
// Create a buffer with the proper size and retrieve the value
261
WCHAR* wCharValue = new WCHAR[size / sizeof(WCHAR)];
262
rv = RegGetValueW(HKEY_LOCAL_MACHINE, keyLocation, keyName,
263
RRF_RT_REG_MULTI_SZ, nullptr, (LPBYTE)wCharValue, &size);
264
if (rv != ERROR_SUCCESS) {
265
delete[] wCharValue;
266
return NS_ERROR_FAILURE;
267
}
268
269
// The value is a sequence of null-terminated strings, usually terminated by
270
// an empty string (\0). RegGetValue ensures that the value is properly
271
// terminated with a null character.
272
DWORD i = 0;
273
DWORD strLen = size / sizeof(WCHAR);
274
while (i < strLen) {
275
nsString value(wCharValue + i);
276
if (!value.IsEmpty()) {
277
destStrings.AppendElement(value);
278
}
279
i += value.Length() + 1;
280
}
281
delete[] wCharValue;
282
283
return NS_OK;
284
}
285
286
// The device ID is a string like PCI\VEN_15AD&DEV_0405&SUBSYS_040515AD
287
// this function is used to extract the id's out of it
288
uint32_t ParseIDFromDeviceID(const nsAString& key, const char* prefix,
289
int length) {
290
nsAutoString id(key);
291
ToUpperCase(id);
292
int32_t start = id.Find(prefix);
293
if (start != -1) {
294
id.Cut(0, start + strlen(prefix));
295
id.Truncate(length);
296
}
297
if (id.Equals(L"QCOM", nsCaseInsensitiveStringComparator())) {
298
// String format assumptions are broken, so use a Qualcomm PCI Vendor ID
299
// for now. See also GfxDriverInfo::GetDeviceVendor.
300
return 0x5143;
301
}
302
nsresult err;
303
return id.ToInteger(&err, 16);
304
}
305
306
// OS version in 16.16 major/minor form
308
enum {
309
kWindowsUnknown = 0,
310
kWindows7 = 0x60001,
311
kWindows8 = 0x60002,
312
kWindows8_1 = 0x60003,
313
kWindows10 = 0xA0000
314
};
315
316
static bool HasBattery() {
317
// Helper classes to manage lifetimes of Windows structs.
318
class MOZ_STACK_CLASS HDevInfoHolder final {
319
public:
320
explicit HDevInfoHolder(HDEVINFO aHandle) : mHandle(aHandle) {}
321
322
~HDevInfoHolder() { ::SetupDiDestroyDeviceInfoList(mHandle); }
323
324
private:
325
HDEVINFO mHandle;
326
};
327
328
class MOZ_STACK_CLASS HandleHolder final {
329
public:
330
explicit HandleHolder(HANDLE aHandle) : mHandle(aHandle) {}
331
332
~HandleHolder() { ::CloseHandle(mHandle); }
333
334
private:
335
HANDLE mHandle;
336
};
337
338
HDEVINFO hdev =
339
::SetupDiGetClassDevs(&GUID_DEVCLASS_BATTERY, nullptr, nullptr,
340
DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
341
if (hdev == INVALID_HANDLE_VALUE) {
342
return true;
343
}
344
345
HDevInfoHolder hdevHolder(hdev);
346
347
DWORD i = 0;
348
SP_DEVICE_INTERFACE_DATA did = {0};
349
did.cbSize = sizeof(did);
350
351
while (::SetupDiEnumDeviceInterfaces(hdev, nullptr, &GUID_DEVCLASS_BATTERY, i,
352
&did)) {
353
DWORD bufferSize = 0;
354
::SetupDiGetDeviceInterfaceDetail(hdev, &did, nullptr, 0, &bufferSize,
355
nullptr);
356
if (::GetLastError() != ERROR_INSUFFICIENT_BUFFER) {
357
return true;
358
}
359
360
UniquePtr<uint8_t[]> buffer(new (std::nothrow) uint8_t[bufferSize]);
361
if (!buffer) {
362
return true;
363
}
364
365
PSP_DEVICE_INTERFACE_DETAIL_DATA pdidd =
366
reinterpret_cast<PSP_DEVICE_INTERFACE_DETAIL_DATA>(buffer.get());
367
pdidd->cbSize = sizeof(*pdidd);
368
if (!::SetupDiGetDeviceInterfaceDetail(hdev, &did, pdidd, bufferSize,
369
&bufferSize, nullptr)) {
370
return true;
371
}
372
373
HANDLE hbat = ::CreateFile(pdidd->DevicePath, GENERIC_READ | GENERIC_WRITE,
374
FILE_SHARE_READ | FILE_SHARE_WRITE, nullptr,
375
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
376
if (hbat == INVALID_HANDLE_VALUE) {
377
return true;
378
}
379
380
HandleHolder hbatHolder(hbat);
381
382
BATTERY_QUERY_INFORMATION bqi = {0};
383
DWORD dwWait = 0;
384
DWORD dwOut;
385
386
// We need the tag to query the information below.
387
if (!::DeviceIoControl(hbat, IOCTL_BATTERY_QUERY_TAG, &dwWait,
388
sizeof(dwWait), &bqi.BatteryTag,
389
sizeof(bqi.BatteryTag), &dwOut, nullptr) ||
390
!bqi.BatteryTag) {
391
return true;
392
}
393
394
BATTERY_INFORMATION bi = {0};
395
bqi.InformationLevel = BatteryInformation;
396
397
if (!::DeviceIoControl(hbat, IOCTL_BATTERY_QUERY_INFORMATION, &bqi,
398
sizeof(bqi), &bi, sizeof(bi), &dwOut, nullptr)) {
399
return true;
400
}
401
402
// If a battery intended for general use (i.e. system use) is not a UPS
403
// (i.e. short term), then we know for certain we have a battery.
404
if ((bi.Capabilities & BATTERY_SYSTEM_BATTERY) &&
405
!(bi.Capabilities & BATTERY_IS_SHORT_TERM)) {
406
return true;
407
}
408
409
// Otherwise we check the next battery.
410
++i;
411
}
412
413
// If we fail to enumerate because there are no more batteries to check, then
414
// we can safely say there are indeed no system batteries.
415
return ::GetLastError() != ERROR_NO_MORE_ITEMS;
416
}
417
418
/* Other interesting places for info:
419
* IDXGIAdapter::GetDesc()
420
* IDirectDraw7::GetAvailableVidMem()
421
* e->GetAvailableTextureMem()
422
* */
423
424
#define DEVICE_KEY_PREFIX L"\\Registry\\Machine\\"
425
nsresult GfxInfo::Init() {
426
nsresult rv = GfxInfoBase::Init();
427
mHasBattery = HasBattery();
428
429
DISPLAY_DEVICEW displayDevice;
430
displayDevice.cb = sizeof(displayDevice);
431
int deviceIndex = 0;
432
433
const char* spoofedWindowsVersion =
434
PR_GetEnv("MOZ_GFX_SPOOF_WINDOWS_VERSION");
435
if (spoofedWindowsVersion) {
436
PR_sscanf(spoofedWindowsVersion, "%x,%u", &mWindowsVersion,
437
&mWindowsBuildNumber);
438
} else {
439
OSVERSIONINFO vinfo;
440
vinfo.dwOSVersionInfoSize = sizeof(vinfo);
441
#ifdef _MSC_VER
442
# pragma warning(push)
443
# pragma warning(disable : 4996)
444
#endif
445
if (!GetVersionEx(&vinfo)) {
446
#ifdef _MSC_VER
447
# pragma warning(pop)
448
#endif
449
mWindowsVersion = kWindowsUnknown;
450
} else {
451
mWindowsVersion =
452
int32_t(vinfo.dwMajorVersion << 16) + vinfo.dwMinorVersion;
453
mWindowsBuildNumber = vinfo.dwBuildNumber;
454
}
455
}
456
457
mDeviceKeyDebug = NS_LITERAL_STRING("PrimarySearch");
458
459
while (EnumDisplayDevicesW(nullptr, deviceIndex, &displayDevice, 0)) {
460
if (displayDevice.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE) {
461
mDeviceKeyDebug = NS_LITERAL_STRING("NullSearch");
462
break;
463
}
464
deviceIndex++;
465
}
466
467
// make sure the string is nullptr terminated
468
if (wcsnlen(displayDevice.DeviceKey, ArrayLength(displayDevice.DeviceKey)) ==
469
ArrayLength(displayDevice.DeviceKey)) {
470
// we did not find a nullptr
471
return rv;
472
}
473
474
mDeviceKeyDebug = displayDevice.DeviceKey;
475
476
/* DeviceKey is "reserved" according to MSDN so we'll be careful with it */
477
/* check that DeviceKey begins with DEVICE_KEY_PREFIX */
478
/* some systems have a DeviceKey starting with \REGISTRY\Machine\ so we need
479
* to compare case insenstively */
480
if (_wcsnicmp(displayDevice.DeviceKey, DEVICE_KEY_PREFIX,
481
ArrayLength(DEVICE_KEY_PREFIX) - 1) != 0)
482
return rv;
483
484
// chop off DEVICE_KEY_PREFIX
485
mDeviceKey[0] = displayDevice.DeviceKey + ArrayLength(DEVICE_KEY_PREFIX) - 1;
486
487
mDeviceID[0] = displayDevice.DeviceID;
488
mDeviceString[0] = displayDevice.DeviceString;
489
490
// On Windows 8 and Server 2012 hosts, we want to not block RDP
491
// sessions from attempting hardware acceleration. RemoteFX
492
// provides features and functionaltiy that can give a good D3D10 +
493
// D2D + DirectWrite experience emulated via a software GPU.
494
//
495
// Unfortunately, the Device ID is nullptr, and we can't enumerate
496
// it using the setup infrastructure (SetupDiGetClassDevsW below
497
// will return INVALID_HANDLE_VALUE).
498
UINT flags = DIGCF_PRESENT | DIGCF_PROFILE | DIGCF_ALLCLASSES;
499
if (mWindowsVersion >= kWindows8 && mDeviceID[0].Length() == 0 &&
500
mDeviceString[0].EqualsLiteral("RDPUDD Chained DD")) {
501
WCHAR sysdir[255];
502
UINT len = GetSystemDirectory(sysdir, sizeof(sysdir));
503
if (len < sizeof(sysdir)) {
504
nsString rdpudd(sysdir);
505
rdpudd.AppendLiteral("\\rdpudd.dll");
506
gfxWindowsPlatform::GetDLLVersion(rdpudd.BeginReading(),
507
mDriverVersion[0]);
508
mDriverDate[0].AssignLiteral("01-01-1970");
509
510
// 0x1414 is Microsoft; 0xfefe is an invented (and unused) code
511
mDeviceID[0].AssignLiteral("PCI\\VEN_1414&DEV_FEFE&SUBSYS_00000000");
512
flags |= DIGCF_DEVICEINTERFACE;
513
}
514
}
515
516
/* create a device information set composed of the current display device */
517
HDEVINFO devinfo =
518
SetupDiGetClassDevsW(nullptr, mDeviceID[0].get(), nullptr, flags);
519
520
if (devinfo != INVALID_HANDLE_VALUE) {
521
HKEY key;
522
LONG result;
523
WCHAR value[255];
524
DWORD dwcbData;
525
SP_DEVINFO_DATA devinfoData;
526
DWORD memberIndex = 0;
527
528
devinfoData.cbSize = sizeof(devinfoData);
529
NS_NAMED_LITERAL_STRING(driverKeyPre,
530
"System\\CurrentControlSet\\Control\\Class\\");
531
/* enumerate device information elements in the device information set */
532
while (SetupDiEnumDeviceInfo(devinfo, memberIndex++, &devinfoData)) {
533
/* get a string that identifies the device's driver key */
534
if (SetupDiGetDeviceRegistryPropertyW(devinfo, &devinfoData, SPDRP_DRIVER,
535
nullptr, (PBYTE)value,
536
sizeof(value), nullptr)) {
537
nsAutoString driverKey(driverKeyPre);
538
driverKey += value;
539
result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, driverKey.get(), 0,
540
KEY_QUERY_VALUE, &key);
541
if (result == ERROR_SUCCESS) {
542
/* we've found the driver we're looking for */
543
dwcbData = sizeof(value);
544
result = RegQueryValueExW(key, L"DriverVersion", nullptr, nullptr,
545
(LPBYTE)value, &dwcbData);
546
if (result == ERROR_SUCCESS) {
547
mDriverVersion[0] = value;
548
} else {
549
// If the entry wasn't found, assume the worst (0.0.0.0).
550
mDriverVersion[0].AssignLiteral("0.0.0.0");
551
}
552
dwcbData = sizeof(value);
553
result = RegQueryValueExW(key, L"DriverDate", nullptr, nullptr,
554
(LPBYTE)value, &dwcbData);
555
if (result == ERROR_SUCCESS) {
556
mDriverDate[0] = value;
557
} else {
558
// Again, assume the worst
559
mDriverDate[0].AssignLiteral("01-01-1970");
560
}
561
RegCloseKey(key);
562
break;
563
}
564
}
565
}
566
567
SetupDiDestroyDeviceInfoList(devinfo);
568
}
569
570
// It is convenient to have these as integers
571
uint32_t adapterVendorID[2] = {0, 0};
572
uint32_t adapterDeviceID[2] = {0, 0};
573
uint32_t adapterSubsysID[2] = {0, 0};
574
575
adapterVendorID[0] = ParseIDFromDeviceID(mDeviceID[0], "VEN_", 4);
576
adapterDeviceID[0] = ParseIDFromDeviceID(mDeviceID[0], "&DEV_", 4);
577
adapterSubsysID[0] = ParseIDFromDeviceID(mDeviceID[0], "&SUBSYS_", 8);
578
579
// Sometimes we don't get the valid device using this method. For now,
580
// allow zero vendor or device as valid, as long as the other value is
581
// non-zero.
582
bool foundValidDevice = (adapterVendorID[0] != 0 || adapterDeviceID[0] != 0);
583
584
// We now check for second display adapter. If we didn't find the valid
585
// device using the original approach, we will try the alternative.
586
587
// Device interface class for display adapters.
588
CLSID GUID_DISPLAY_DEVICE_ARRIVAL;
589
HRESULT hresult = CLSIDFromString(L"{1CA05180-A699-450A-9A0C-DE4FBE3DDD89}",
590
&GUID_DISPLAY_DEVICE_ARRIVAL);
591
if (hresult == NOERROR) {
592
devinfo =
593
SetupDiGetClassDevsW(&GUID_DISPLAY_DEVICE_ARRIVAL, nullptr, nullptr,
594
DIGCF_PRESENT | DIGCF_INTERFACEDEVICE);
595
596
if (devinfo != INVALID_HANDLE_VALUE) {
597
HKEY key;
598
LONG result;
599
WCHAR value[255];
600
DWORD dwcbData;
601
SP_DEVINFO_DATA devinfoData;
602
DWORD memberIndex = 0;
603
devinfoData.cbSize = sizeof(devinfoData);
604
605
nsAutoString adapterDriver2;
606
nsAutoString deviceID2;
607
nsAutoString driverVersion2;
608
nsAutoString driverDate2;
609
610
NS_NAMED_LITERAL_STRING(driverKeyPre,
611
"System\\CurrentControlSet\\Control\\Class\\");
612
/* enumerate device information elements in the device information set */
613
while (SetupDiEnumDeviceInfo(devinfo, memberIndex++, &devinfoData)) {
614
/* get a string that identifies the device's driver key */
615
if (SetupDiGetDeviceRegistryPropertyW(
616
devinfo, &devinfoData, SPDRP_DRIVER, nullptr, (PBYTE)value,
617
sizeof(value), nullptr)) {
618
nsAutoString driverKey2(driverKeyPre);
619
driverKey2 += value;
620
result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, driverKey2.get(), 0,
621
KEY_QUERY_VALUE, &key);
622
if (result == ERROR_SUCCESS) {
623
dwcbData = sizeof(value);
624
result = RegQueryValueExW(key, L"MatchingDeviceId", nullptr,
625
nullptr, (LPBYTE)value, &dwcbData);
626
if (result != ERROR_SUCCESS) {
627
continue;
628
}
629
deviceID2 = value;
630
adapterVendorID[1] = ParseIDFromDeviceID(deviceID2, "VEN_", 4);
631
adapterDeviceID[1] = ParseIDFromDeviceID(deviceID2, "&DEV_", 4);
632
// Skip the devices we already considered, as well as any
633
// "zero" ones.
634
if ((adapterVendorID[0] == adapterVendorID[1] &&
635
adapterDeviceID[0] == adapterDeviceID[1]) ||
636
(adapterVendorID[1] == 0 && adapterDeviceID[1] == 0)) {
637
RegCloseKey(key);
638
continue;
639
}
640
641
// If this device is missing driver information, it is unlikely to
642
// be a real display adapter.
643
if (NS_FAILED(GetKeyValue(driverKey2.get(),
644
L"InstalledDisplayDrivers",
645
adapterDriver2, REG_MULTI_SZ))) {
646
RegCloseKey(key);
647
continue;
648
}
649
dwcbData = sizeof(value);
650
result = RegQueryValueExW(key, L"DriverVersion", nullptr, nullptr,
651
(LPBYTE)value, &dwcbData);
652
if (result != ERROR_SUCCESS) {
653
RegCloseKey(key);
654
continue;
655
}
656
driverVersion2 = value;
657
dwcbData = sizeof(value);
658
result = RegQueryValueExW(key, L"DriverDate", nullptr, nullptr,
659
(LPBYTE)value, &dwcbData);
660
if (result != ERROR_SUCCESS) {
661
RegCloseKey(key);
662
continue;
663
}
664
driverDate2 = value;
665
dwcbData = sizeof(value);
666
result = RegQueryValueExW(key, L"Device Description", nullptr,
667
nullptr, (LPBYTE)value, &dwcbData);
668
if (result != ERROR_SUCCESS) {
669
dwcbData = sizeof(value);
670
result = RegQueryValueExW(key, L"DriverDesc", nullptr, nullptr,
671
(LPBYTE)value, &dwcbData);
672
}
673
RegCloseKey(key);
674
if (result == ERROR_SUCCESS) {
675
// If we didn't find a valid device with the original method
676
// take this one, and continue looking for the second GPU.
677
if (!foundValidDevice) {
678
foundValidDevice = true;
679
adapterVendorID[0] = adapterVendorID[1];
680
adapterDeviceID[0] = adapterDeviceID[1];
681
mDeviceString[0] = value;
682
mDeviceID[0] = deviceID2;
683
mDeviceKey[0] = driverKey2;
684
mDriverVersion[0] = driverVersion2;
685
mDriverDate[0] = driverDate2;
686
adapterSubsysID[0] =
687
ParseIDFromDeviceID(mDeviceID[0], "&SUBSYS_", 8);
688
continue;
689
}
690
691
mHasDualGPU = true;
692
mDeviceString[1] = value;
693
mDeviceID[1] = deviceID2;
694
mDeviceKey[1] = driverKey2;
695
mDriverVersion[1] = driverVersion2;
696
mDriverDate[1] = driverDate2;
697
adapterSubsysID[1] =
698
ParseIDFromDeviceID(mDeviceID[1], "&SUBSYS_", 8);
699
mAdapterVendorID[1].AppendPrintf("0x%04x", adapterVendorID[1]);
700
mAdapterDeviceID[1].AppendPrintf("0x%04x", adapterDeviceID[1]);
701
mAdapterSubsysID[1].AppendPrintf("%08x", adapterSubsysID[1]);
702
break;
703
}
704
}
705
}
706
}
707
708
SetupDiDestroyDeviceInfoList(devinfo);
709
}
710
}
711
712
mAdapterVendorID[0].AppendPrintf("0x%04x", adapterVendorID[0]);
713
mAdapterDeviceID[0].AppendPrintf("0x%04x", adapterDeviceID[0]);
714
mAdapterSubsysID[0].AppendPrintf("%08x", adapterSubsysID[0]);
715
716
// Sometimes, the enumeration is not quite right and the two adapters
717
// end up being swapped. Actually enumerate the adapters that come
718
// back from the DXGI factory to check, and tag the second as active
719
// if found.
720
if (mHasDualGPU) {
721
nsModuleHandle dxgiModule(LoadLibrarySystem32(L"dxgi.dll"));
722
decltype(CreateDXGIFactory)* createDXGIFactory =
723
(decltype(CreateDXGIFactory)*)GetProcAddress(dxgiModule,
724
"CreateDXGIFactory");
725
726
if (createDXGIFactory) {
727
RefPtr<IDXGIFactory> factory = nullptr;
728
createDXGIFactory(__uuidof(IDXGIFactory), (void**)(&factory));
729
if (factory) {
730
RefPtr<IDXGIAdapter> adapter;
731
if (SUCCEEDED(factory->EnumAdapters(0, getter_AddRefs(adapter)))) {
732
DXGI_ADAPTER_DESC desc;
733
PodZero(&desc);
734
if (SUCCEEDED(adapter->GetDesc(&desc))) {
735
if (desc.VendorId != adapterVendorID[0] &&
736
desc.DeviceId != adapterDeviceID[0] &&
737
desc.VendorId == adapterVendorID[1] &&
738
desc.DeviceId == adapterDeviceID[1]) {
739
mActiveGPUIndex = 1;
740
}
741
}
742
}
743
}
744
}
745
}
746
747
mHasDriverVersionMismatch = false;
748
if (mAdapterVendorID[mActiveGPUIndex] ==
749
GfxDriverInfo::GetDeviceVendor(DeviceVendor::Intel)) {
750
// we've had big crashers (bugs 590373 and 595364) apparently correlated
751
// with bad Intel driver installations where the DriverVersion reported
752
// by the registry was not the version of the DLL.
753
754
// Note that these start without the .dll extension but eventually gain it.
755
bool is64bitApp = sizeof(void*) == 8;
756
nsAutoString dllFileName(is64bitApp ? u"igd10umd64" : u"igd10umd32");
757
nsAutoString dllFileName2(is64bitApp ? u"igd10iumd64" : u"igd10iumd32");
758
759
nsString dllVersion, dllVersion2;
760
uint64_t dllNumericVersion = 0, dllNumericVersion2 = 0,
761
driverNumericVersion = 0, knownSafeMismatchVersion = 0;
762
763
// Only parse the DLL version for those found in the driver list
764
nsAutoString eligibleDLLs;
765
if (NS_SUCCEEDED(GetAdapterDriver(eligibleDLLs))) {
766
if (FindInReadable(dllFileName, eligibleDLLs)) {
767
dllFileName += NS_LITERAL_STRING(".dll");
768
gfxWindowsPlatform::GetDLLVersion(dllFileName.get(), dllVersion);
769
ParseDriverVersion(dllVersion, &dllNumericVersion);
770
}
771
if (FindInReadable(dllFileName2, eligibleDLLs)) {
772
dllFileName2 += NS_LITERAL_STRING(".dll");
773
gfxWindowsPlatform::GetDLLVersion(dllFileName2.get(), dllVersion2);
774
ParseDriverVersion(dllVersion2, &dllNumericVersion2);
775
}
776
}
777
778
// Sometimes the DLL is not in the System32 nor SysWOW64 directories. But
779
// UserModeDriverName (or UserModeDriverNameWow, if available) might provide
780
// the full path to the DLL in some DriverStore FileRepository.
781
if (dllNumericVersion == 0 && dllNumericVersion2 == 0) {
782
nsTArray<nsString> eligibleDLLpaths;
783
const WCHAR* keyLocation = mDeviceKey[mActiveGPUIndex].get();
784
GetKeyValues(keyLocation, L"UserModeDriverName", eligibleDLLpaths);
785
GetKeyValues(keyLocation, L"UserModeDriverNameWow", eligibleDLLpaths);
786
size_t length = eligibleDLLpaths.Length();
787
for (size_t i = 0;
788
i < length && dllNumericVersion == 0 && dllNumericVersion2 == 0;
789
++i) {
790
if (FindInReadable(dllFileName, eligibleDLLpaths[i])) {
791
gfxWindowsPlatform::GetDLLVersion(eligibleDLLpaths[i].get(),
792
dllVersion);
793
ParseDriverVersion(dllVersion, &dllNumericVersion);
794
} else if (FindInReadable(dllFileName2, eligibleDLLpaths[i])) {
795
gfxWindowsPlatform::GetDLLVersion(eligibleDLLpaths[i].get(),
796
dllVersion2);
797
ParseDriverVersion(dllVersion2, &dllNumericVersion2);
798
}
799
}
800
}
801
802
ParseDriverVersion(mDriverVersion[mActiveGPUIndex], &driverNumericVersion);
803
ParseDriverVersion(NS_LITERAL_STRING("9.17.10.0"),
804
&knownSafeMismatchVersion);
805
806
// If there's a driver version mismatch, consider this harmful only when
807
// the driver version is less than knownSafeMismatchVersion. See the
808
// above comment about crashes with old mismatches. If the GetDllVersion
809
// call fails, we are not calling it a mismatch.
810
if ((dllNumericVersion != 0 && dllNumericVersion != driverNumericVersion) ||
811
(dllNumericVersion2 != 0 &&
812
dllNumericVersion2 != driverNumericVersion)) {
813
if (driverNumericVersion < knownSafeMismatchVersion ||
814
std::max(dllNumericVersion, dllNumericVersion2) <
815
knownSafeMismatchVersion) {
816
mHasDriverVersionMismatch = true;
817
gfxCriticalNoteOnce
818
<< "Mismatched driver versions between the registry "
819
<< NS_ConvertUTF16toUTF8(mDriverVersion[mActiveGPUIndex]).get()
820
<< " and DLL(s) " << NS_ConvertUTF16toUTF8(dllVersion).get() << ", "
821
<< NS_ConvertUTF16toUTF8(dllVersion2).get() << " reported.";
822
}
823
} else if (dllNumericVersion == 0 && dllNumericVersion2 == 0) {
824
// Leave it as an asserting error for now, to see if we can find
825
// a system that exhibits this kind of a problem internally.
826
gfxCriticalErrorOnce()
827
<< "Potential driver version mismatch ignored due to missing DLLs "
828
<< NS_ConvertUTF16toUTF8(dllFileName).get()
829
<< " v=" << NS_ConvertUTF16toUTF8(dllVersion).get() << " and "
830
<< NS_ConvertUTF16toUTF8(dllFileName2).get()
831
<< " v=" << NS_ConvertUTF16toUTF8(dllVersion2).get();
832
}
833
}
834
835
// Get monitor information
836
for (int deviceIndex = 0;; deviceIndex++) {
837
DISPLAY_DEVICEA device;
838
device.cb = sizeof(device);
839
if (!::EnumDisplayDevicesA(nullptr, deviceIndex, &device, 0)) {
840
break;
841
}
842
843
if (!(device.StateFlags & DISPLAY_DEVICE_ACTIVE)) {
844
continue;
845
}
846
847
DEVMODEA mode;
848
mode.dmSize = sizeof(mode);
849
mode.dmDriverExtra = 0;
850
if (!::EnumDisplaySettingsA(device.DeviceName, ENUM_CURRENT_SETTINGS,
851
&mode)) {
852
continue;
853
}
854
855
DisplayInfo displayInfo;
856
857
displayInfo.mScreenWidth = mode.dmPelsWidth;
858
displayInfo.mScreenHeight = mode.dmPelsHeight;
859
displayInfo.mRefreshRate = mode.dmDisplayFrequency;
860
displayInfo.mIsPseudoDisplay =
861
!!(device.StateFlags & DISPLAY_DEVICE_MIRRORING_DRIVER);
862
863
mDisplayInfo.AppendElement(displayInfo);
864
}
865
866
const char* spoofedDriverVersionString =
867
PR_GetEnv("MOZ_GFX_SPOOF_DRIVER_VERSION");
868
if (spoofedDriverVersionString) {
869
mDriverVersion[mActiveGPUIndex].AssignASCII(spoofedDriverVersionString);
870
}
871
872
const char* spoofedVendor = PR_GetEnv("MOZ_GFX_SPOOF_VENDOR_ID");
873
if (spoofedVendor) {
874
mAdapterVendorID[mActiveGPUIndex].AssignASCII(spoofedVendor);
875
}
876
877
const char* spoofedDevice = PR_GetEnv("MOZ_GFX_SPOOF_DEVICE_ID");
878
if (spoofedDevice) {
879
mAdapterDeviceID[mActiveGPUIndex].AssignASCII(spoofedDevice);
880
}
881
882
AddCrashReportAnnotations();
883
884
return rv;
885
}
886
887
NS_IMETHODIMP
888
GfxInfo::GetAdapterDescription(nsAString& aAdapterDescription) {
889
aAdapterDescription = mDeviceString[mActiveGPUIndex];
890
return NS_OK;
891
}
892
893
NS_IMETHODIMP
894
GfxInfo::GetAdapterDescription2(nsAString& aAdapterDescription) {
895
aAdapterDescription = mDeviceString[1 - mActiveGPUIndex];
896
return NS_OK;
897
}
898
899
NS_IMETHODIMP
900
GfxInfo::GetAdapterRAM(uint32_t* aAdapterRAM) {
901
uint32_t result = 0;
902
if (NS_FAILED(GetKeyValue(mDeviceKey[mActiveGPUIndex].get(),
903
L"HardwareInformation.qwMemorySize", result,
904
REG_QWORD)) ||
905
result == 0) {
906
if (NS_FAILED(GetKeyValue(mDeviceKey[mActiveGPUIndex].get(),
907
L"HardwareInformation.MemorySize", result,
908
REG_DWORD))) {
909
result = 0;
910
}
911
}
912
*aAdapterRAM = result;
913
return NS_OK;
914
}
915
916
NS_IMETHODIMP
917
GfxInfo::GetAdapterRAM2(uint32_t* aAdapterRAM) {
918
uint32_t result = 0;
919
if (mHasDualGPU) {
920
if (NS_FAILED(GetKeyValue(mDeviceKey[1 - mActiveGPUIndex].get(),
921
L"HardwareInformation.qwMemorySize", result,
922
REG_QWORD)) ||
923
result == 0) {
924
if (NS_FAILED(GetKeyValue(mDeviceKey[1 - mActiveGPUIndex].get(),
925
L"HardwareInformation.MemorySize", result,
926
REG_DWORD))) {
927
result = 0;
928
}
929
}
930
}
931
*aAdapterRAM = result;
932
return NS_OK;
933
}
934
935
NS_IMETHODIMP
936
GfxInfo::GetAdapterDriver(nsAString& aAdapterDriver) {
937
if (NS_FAILED(GetKeyValue(mDeviceKey[mActiveGPUIndex].get(),
938
L"InstalledDisplayDrivers", aAdapterDriver,
939
REG_MULTI_SZ)))
940
aAdapterDriver = L"Unknown";
941
return NS_OK;
942
}
943
944
NS_IMETHODIMP
945
GfxInfo::GetAdapterDriver2(nsAString& aAdapterDriver) {
946
if (!mHasDualGPU) {
947
aAdapterDriver.Truncate();
948
} else if (NS_FAILED(GetKeyValue(mDeviceKey[1 - mActiveGPUIndex].get(),
949
L"InstalledDisplayDrivers", aAdapterDriver,
950
REG_MULTI_SZ))) {
951
aAdapterDriver = L"Unknown";
952
}
953
return NS_OK;
954
}
955
956
NS_IMETHODIMP
957
GfxInfo::GetAdapterDriverVendor(nsAString& aAdapterDriverVendor) {
958
aAdapterDriverVendor.Truncate();
959
return NS_OK;
960
}
961
962
NS_IMETHODIMP
963
GfxInfo::GetAdapterDriverVersion(nsAString& aAdapterDriverVersion) {
964
aAdapterDriverVersion = mDriverVersion[mActiveGPUIndex];
965
return NS_OK;
966
}
967
968
NS_IMETHODIMP
969
GfxInfo::GetAdapterDriverDate(nsAString& aAdapterDriverDate) {
970
aAdapterDriverDate = mDriverDate[mActiveGPUIndex];
971
return NS_OK;
972
}
973
974
NS_IMETHODIMP
975
GfxInfo::GetAdapterDriverVendor2(nsAString& aAdapterDriverVendor) {
976
aAdapterDriverVendor.Truncate();
977
return NS_OK;
978
}
979
980
NS_IMETHODIMP
981
GfxInfo::GetAdapterDriverVersion2(nsAString& aAdapterDriverVersion) {
982
aAdapterDriverVersion = mDriverVersion[1 - mActiveGPUIndex];
983
return NS_OK;
984
}
985
986
NS_IMETHODIMP
987
GfxInfo::GetAdapterDriverDate2(nsAString& aAdapterDriverDate) {
988
aAdapterDriverDate = mDriverDate[1 - mActiveGPUIndex];
989
return NS_OK;
990
}
991
992
NS_IMETHODIMP
993
GfxInfo::GetAdapterVendorID(nsAString& aAdapterVendorID) {
994
aAdapterVendorID = mAdapterVendorID[mActiveGPUIndex];
995
return NS_OK;
996
}
997
998
NS_IMETHODIMP
999
GfxInfo::GetAdapterVendorID2(nsAString& aAdapterVendorID) {
1000
aAdapterVendorID = mAdapterVendorID[1 - mActiveGPUIndex];
1001
return NS_OK;
1002
}
1003
1004
NS_IMETHODIMP
1005
GfxInfo::GetAdapterDeviceID(nsAString& aAdapterDeviceID) {
1006
aAdapterDeviceID = mAdapterDeviceID[mActiveGPUIndex];
1007
return NS_OK;
1008
}
1009
1010
NS_IMETHODIMP
1011
GfxInfo::GetAdapterDeviceID2(nsAString& aAdapterDeviceID) {
1012
aAdapterDeviceID = mAdapterDeviceID[1 - mActiveGPUIndex];
1013
return NS_OK;
1014
}
1015
1016
NS_IMETHODIMP
1017
GfxInfo::GetAdapterSubsysID(nsAString& aAdapterSubsysID) {
1018
aAdapterSubsysID = mAdapterSubsysID[mActiveGPUIndex];
1019
return NS_OK;
1020
}
1021
1022
NS_IMETHODIMP
1023
GfxInfo::GetAdapterSubsysID2(nsAString& aAdapterSubsysID) {
1024
aAdapterSubsysID = mAdapterSubsysID[1 - mActiveGPUIndex];
1025
return NS_OK;
1026
}
1027
1028
NS_IMETHODIMP
1029
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active) {
1030
// This is never the case, as the active GPU ends up being
1031
// the first one. It should probably be removed.
1032
*aIsGPU2Active = false;
1033
return NS_OK;
1034
}
1035
1036
NS_IMETHODIMP
1037
GfxInfo::GetDisplayInfo(nsTArray<nsString>& aDisplayInfo) {
1038
for (auto displayInfo : mDisplayInfo) {
1039
nsString value;
1040
value.AppendPrintf("%dx%d@%dHz %s", displayInfo.mScreenWidth,
1041
displayInfo.mScreenHeight, displayInfo.mRefreshRate,
1042
displayInfo.mIsPseudoDisplay ? "Pseudo Display" : "");
1043
1044
aDisplayInfo.AppendElement(value);
1045
}
1046
1047
return NS_OK;
1048
}
1049
1050
NS_IMETHODIMP
1051
GfxInfo::GetDisplayWidth(nsTArray<uint32_t>& aDisplayWidth) {
1052
for (auto displayInfo : mDisplayInfo) {
1053
aDisplayWidth.AppendElement((uint32_t)displayInfo.mScreenWidth);
1054
}
1055
return NS_OK;
1056
}
1057
1058
NS_IMETHODIMP
1059
GfxInfo::GetDisplayHeight(nsTArray<uint32_t>& aDisplayHeight) {
1060
for (auto displayInfo : mDisplayInfo) {
1061
aDisplayHeight.AppendElement((uint32_t)displayInfo.mScreenHeight);
1062
}
1063
return NS_OK;
1064
}
1065
1066
/* Cisco's VPN software can cause corruption of the floating point state.
1067
* Make a note of this in our crash reports so that some weird crashes
1068
* make more sense */
1069
static void CheckForCiscoVPN() {
1070
LONG result;
1071
HKEY key;
1072
/* This will give false positives, but hopefully no false negatives */
1073
result =
1074
RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\\Cisco Systems\\VPN Client",
1075
0, KEY_QUERY_VALUE, &key);
1076
if (result == ERROR_SUCCESS) {
1077
RegCloseKey(key);
1078
CrashReporter::AppendAppNotesToCrashReport(
1079
NS_LITERAL_CSTRING("Cisco VPN\n"));
1080
}
1081
}
1082
1083
void GfxInfo::AddCrashReportAnnotations() {
1084
CheckForCiscoVPN();
1085
1086
if (mHasDriverVersionMismatch) {
1087
CrashReporter::AppendAppNotesToCrashReport(
1088
NS_LITERAL_CSTRING("DriverVersionMismatch\n"));
1089
}
1090
1091
nsString deviceID, vendorID, driverVersion, subsysID;
1092
nsCString narrowDeviceID, narrowVendorID, narrowDriverVersion, narrowSubsysID;
1093
1094
GetAdapterDeviceID(deviceID);
1095
CopyUTF16toUTF8(deviceID, narrowDeviceID);
1096
GetAdapterVendorID(vendorID);
1097
CopyUTF16toUTF8(vendorID, narrowVendorID);
1098
GetAdapterDriverVersion(driverVersion);
1099
CopyUTF16toUTF8(driverVersion, narrowDriverVersion);
1100
GetAdapterSubsysID(subsysID);
1101
CopyUTF16toUTF8(subsysID, narrowSubsysID);
1102
1103
CrashReporter::AnnotateCrashReport(CrashReporter::Annotation::AdapterVendorID,
1104
narrowVendorID);
1105
CrashReporter::AnnotateCrashReport(CrashReporter::Annotation::AdapterDeviceID,
1106
narrowDeviceID);
1107
CrashReporter::AnnotateCrashReport(
1108
CrashReporter::Annotation::AdapterDriverVersion, narrowDriverVersion);
1109
CrashReporter::AnnotateCrashReport(CrashReporter::Annotation::AdapterSubsysID,
1110
narrowSubsysID);
1111
1112
/* Add an App Note, this contains extra information. */
1113
nsAutoCString note;
1114
1115
// TODO: We should probably convert this into a proper annotation
1116
if (vendorID == GfxDriverInfo::GetDeviceVendor(DeviceVendor::All)) {
1117
/* if we didn't find a valid vendorID lets append the mDeviceID string to
1118
* try to find out why */
1119
LossyAppendUTF16toASCII(mDeviceID[mActiveGPUIndex], note);
1120
note.AppendLiteral(", ");
1121
LossyAppendUTF16toASCII(mDeviceKeyDebug, note);
1122
}
1123
note.AppendLiteral("\n");
1124
1125
if (mHasDualGPU) {
1126
nsString deviceID2, vendorID2, subsysID2;
1127
nsAutoString adapterDriverVersionString2;
1128
nsCString narrowDeviceID2, narrowVendorID2, narrowSubsysID2;
1129
1130
// Make a slight difference between the two cases so that we
1131
// can see it in the crash reports. It may come in handy.
1132
if (mActiveGPUIndex == 1) {
1133
note.AppendLiteral("Has dual GPUs. GPU-#2: ");
1134
} else {
1135
note.AppendLiteral("Has dual GPUs. GPU #2: ");
1136
}
1137
GetAdapterDeviceID2(deviceID2);
1138
CopyUTF16toUTF8(deviceID2, narrowDeviceID2);
1139
GetAdapterVendorID2(vendorID2);
1140
CopyUTF16toUTF8(vendorID2, narrowVendorID2);
1141
GetAdapterDriverVersion2(adapterDriverVersionString2);
1142
GetAdapterSubsysID(subsysID2);
1143
CopyUTF16toUTF8(subsysID2, narrowSubsysID2);
1144
note.AppendLiteral("AdapterVendorID2: ");
1145
note.Append(narrowVendorID2);
1146
note.AppendLiteral(", AdapterDeviceID2: ");
1147
note.Append(narrowDeviceID2);
1148
note.AppendLiteral(", AdapterSubsysID2: ");
1149
note.Append(narrowSubsysID2);
1150
note.AppendLiteral(", AdapterDriverVersion2: ");
1151
note.Append(NS_LossyConvertUTF16toASCII(adapterDriverVersionString2));
1152
}
1153
CrashReporter::AppendAppNotesToCrashReport(note);
1154
}
1155
1156
static OperatingSystem WindowsVersionToOperatingSystem(
1157
int32_t aWindowsVersion) {
1158
switch (aWindowsVersion) {
1159
case kWindows7:
1160
return OperatingSystem::Windows7;
1161
case kWindows8:
1162
return OperatingSystem::Windows8;
1163
case kWindows8_1:
1164
return OperatingSystem::Windows8_1;
1165
case kWindows10:
1166
return OperatingSystem::Windows10;
1167
case kWindowsUnknown:
1168
default:
1169
return OperatingSystem::Unknown;
1170
}
1171
}
1172
1173
static bool OnlyAllowFeatureOnWhitelistedVendor(int32_t aFeature) {
1174
switch (aFeature) {
1175
// The GPU process doesn't need hardware acceleration and can run on
1176
// devices that we normally block from not being on our whitelist.
1177
case nsIGfxInfo::FEATURE_GPU_PROCESS:
1178
// We can mostly assume that ANGLE will work
1179
case nsIGfxInfo::FEATURE_DIRECT3D_11_ANGLE:
1180
return false;
1181
default:
1182
return true;
1183
}
1184
}
1185
1186
// Return true if the CPU supports AVX, but the operating system does not.
1187
#if defined(_M_X64)
1188
static inline bool DetectBrokenAVX() {
1189
int regs[4];
1190
__cpuid(regs, 0);
1191
if (regs[0] == 0) {
1192
// Level not supported.
1193
return false;
1194
}
1195
1196
__cpuid(regs, 1);
1197
1198
const unsigned AVX = 1u << 28;
1199
const unsigned XSAVE = 1u << 26;
1200
if ((regs[2] & (AVX | XSAVE)) != (AVX | XSAVE)) {
1201
// AVX is not supported on this CPU.
1202
return false;
1203
}
1204
1205
const unsigned OSXSAVE = 1u << 27;
1206
if ((regs[2] & OSXSAVE) != OSXSAVE) {
1207
// AVX is supported, but the OS didn't enable it.
1208
// This can be forced via bcdedit /set xsavedisable 1.
1209
return true;
1210
}
1211
1212
const unsigned AVX_CTRL_BITS = (1 << 1) | (1 << 2);
1213
return (xgetbv(0) & AVX_CTRL_BITS) != AVX_CTRL_BITS;
1214
}
1215
#endif
1216
1217
const nsTArray<GfxDriverInfo>& GfxInfo::GetGfxDriverInfo() {
1218
if (!sDriverInfo->Length()) {
1219
/*
1220
* It should be noted here that more specialized rules on certain features
1221
* should be inserted -before- more generalized restriction. As the first
1222
* match for feature/OS/device found in the list will be used for the final
1223
* blacklisting call.
1224
*/
1225
1226
/*
1227
* NVIDIA entries
1228
*/
1229
/*
1230
* The last 5 digit of the NVIDIA driver version maps to the version that
1231
* NVIDIA uses. The minor version (15, 16, 17) corresponds roughtly to the
1232
* OS (Vista, Win7, Win7) but they show up in smaller numbers across all
1233
* OS versions (perhaps due to OS upgrades). So we want to support
1234
* October 2009+ drivers across all these minor versions.
1235
*
1236
* 187.45 (late October 2009) and earlier contain a bug which can cause us
1237
* to crash on shutdown.
1238
*/
1239
APPEND_TO_DRIVER_BLOCKLIST(
1240
OperatingSystem::Windows7, DeviceFamily::NvidiaAll,
1241
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1242
DRIVER_LESS_THAN_OR_EQUAL, V(8, 15, 11, 8745),
1243
"FEATURE_FAILURE_NV_W7_15", "nVidia driver > 187.45");
1244
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1245
OperatingSystem::Windows7, DeviceFamily::NvidiaAll,
1246
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1247
DRIVER_BETWEEN_INCLUSIVE_START, V(8, 16, 10, 0000), V(8, 16, 11, 8745),
1248
"FEATURE_FAILURE_NV_W7_16", "nVidia driver > 187.45");
1249
// Telemetry doesn't show any driver in this range so it might not even be
1250
// required.
1251
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1252
OperatingSystem::Windows7, DeviceFamily::NvidiaAll,
1253
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1254
DRIVER_BETWEEN_INCLUSIVE_START, V(8, 17, 10, 0000), V(8, 17, 11, 8745),
1255
"FEATURE_FAILURE_NV_W7_17", "nVidia driver > 187.45");
1256
1257
/*
1258
* AMD/ATI entries. 8.56.1.15 is the driver that shipped with Windows 7 RTM
1259
*/
1260
APPEND_TO_DRIVER_BLOCKLIST(
1261
OperatingSystem::Windows, DeviceFamily::AtiAll,
1262
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1263
DRIVER_LESS_THAN, V(8, 56, 1, 15), "FEATURE_FAILURE_AMD1", "8.56.1.15");
1264
1265
// Bug 1099252
1266
APPEND_TO_DRIVER_BLOCKLIST2(
1267
OperatingSystem::Windows7, DeviceFamily::AtiAll,
1268
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1269
DRIVER_EQUAL, V(8, 832, 0, 0), "FEATURE_FAILURE_BUG_1099252");
1270
1271
// Bug 1118695
1272
APPEND_TO_DRIVER_BLOCKLIST2(
1273
OperatingSystem::Windows7, DeviceFamily::AtiAll,
1274
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1275
DRIVER_EQUAL, V(8, 783, 2, 2000), "FEATURE_FAILURE_BUG_1118695");
1276
1277
// Bug 1587155
1278
//
1279
// There are a several reports of strange rendering corruptions with this
1280
// driver version, with and without webrender. We weren't able to
1281
// reproduce these problems, but the users were able to update their
1282
// drivers and it went away. So just to be safe, let's blacklist all
1283
// gpu use with this particular (very old) driver, restricted
1284
// to Win10 since we only have reports from that platform.
1285
APPEND_TO_DRIVER_BLOCKLIST2(
1286
OperatingSystem::Windows10, DeviceFamily::AtiAll,
1287
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1288
DRIVER_EQUAL, V(22, 19, 162, 4), "FEATURE_FAILURE_BUG_1587155");
1289
1290
// Bug 1198815
1291
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1292
OperatingSystem::Windows, DeviceFamily::AtiAll,
1293
nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING,
1294
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_BETWEEN_INCLUSIVE,
1295
V(15, 200, 0, 0), V(15, 200, 1062, 1004), "FEATURE_FAILURE_BUG_1198815",
1296
"15.200.0.0-15.200.1062.1004");
1297
1298
// Bug 1267970
1299
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1300
OperatingSystem::Windows10, DeviceFamily::AtiAll,
1301
nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING,
1302
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_BETWEEN_INCLUSIVE,
1303
V(15, 200, 0, 0), V(15, 301, 2301, 1002), "FEATURE_FAILURE_BUG_1267970",
1304
"15.200.0.0-15.301.2301.1002");
1305
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1306
OperatingSystem::Windows10, DeviceFamily::AtiAll,
1307
nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING,
1308
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_BETWEEN_INCLUSIVE,
1309
V(16, 100, 0, 0), V(16, 300, 2311, 0), "FEATURE_FAILURE_BUG_1267970",
1310
"16.100.0.0-16.300.2311.0");
1311
1312
/*
1313
* Bug 783517 - crashes in AMD driver on Windows 8
1314
*/
1315
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1316
OperatingSystem::Windows8, DeviceFamily::AtiAll,
1317
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1318
DRIVER_BETWEEN_INCLUSIVE_START, V(8, 982, 0, 0), V(8, 983, 0, 0),
1319
"FEATURE_FAILURE_BUG_783517_AMD", "!= 8.982.*.*");
1320
1321
/*
1322
* Bug 1599981 - crashes in AMD driver on Windows 10
1323
*/
1324
APPEND_TO_DRIVER_BLOCKLIST2(
1325
OperatingSystem::Windows10, DeviceFamily::RadeonCaicos,
1326
nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS,
1327
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN,
1328
V(15, 301, 1901, 0), "FEATURE_FAILURE_BUG_1599981");
1329
1330
/* OpenGL on any ATI/AMD hardware is discouraged
1331
* See:
1332
* bug 619773 - WebGL: Crash with blue screen : "NMI: Parity Check / Memory
1333
* Parity Error" bugs 584403, 584404, 620924 - crashes in atioglxx
1334
* + many complaints about incorrect rendering
1335
*/
1336
APPEND_TO_DRIVER_BLOCKLIST2(
1337
OperatingSystem::Windows, DeviceFamily::AtiAll,
1338
nsIGfxInfo::FEATURE_OPENGL_LAYERS, nsIGfxInfo::FEATURE_DISCOURAGED,
1339
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1340
"FEATURE_FAILURE_OGL_ATI_DIS");
1341
1342
/*
1343
* Intel entries
1344
*/
1345
1346
/* The driver versions used here come from bug 594877. They might not
1347
* be particularly relevant anymore.
1348
*/
1349
#define IMPLEMENT_INTEL_DRIVER_BLOCKLIST(winVer, devFamily, driverVer, ruleId) \
1350
APPEND_TO_DRIVER_BLOCKLIST2(winVer, devFamily, GfxDriverInfo::allFeatures, \
1351
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, \
1352
DRIVER_LESS_THAN, driverVer, ruleId)
1353
1354
#define IMPLEMENT_INTEL_DRIVER_BLOCKLIST_D2D(winVer, devFamily, driverVer, \
1355
ruleId) \
1356
APPEND_TO_DRIVER_BLOCKLIST2(winVer, devFamily, nsIGfxInfo::FEATURE_DIRECT2D, \
1357
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, \
1358
DRIVER_BUILD_ID_LESS_THAN, driverVer, ruleId)
1359
1360
IMPLEMENT_INTEL_DRIVER_BLOCKLIST_D2D(OperatingSystem::Windows7,
1361
DeviceFamily::IntelGMA500, 2026,
1362
"FEATURE_FAILURE_594877_7");
1363
IMPLEMENT_INTEL_DRIVER_BLOCKLIST_D2D(
1364
OperatingSystem::Windows7, DeviceFamily::IntelGMA900,
1365
GfxDriverInfo::allDriverVersions, "FEATURE_FAILURE_594877_8");
1366
IMPLEMENT_INTEL_DRIVER_BLOCKLIST_D2D(OperatingSystem::Windows7,
1367
DeviceFamily::IntelGMA950, 1930,
1368
"FEATURE_FAILURE_594877_9");
1369
IMPLEMENT_INTEL_DRIVER_BLOCKLIST_D2D(OperatingSystem::Windows7,
1370
DeviceFamily::IntelGMA3150, 2117,
1371
"FEATURE_FAILURE_594877_10");
1372
IMPLEMENT_INTEL_DRIVER_BLOCKLIST_D2D(OperatingSystem::Windows7,
1373
DeviceFamily::IntelGMAX3000, 1930,
1374
"FEATURE_FAILURE_594877_11");
1375
IMPLEMENT_INTEL_DRIVER_BLOCKLIST_D2D(
1376
OperatingSystem::Windows7, DeviceFamily::IntelHDGraphicsToSandyBridge,
1377
2202, "FEATURE_FAILURE_594877_12");
1378
1379
/* Disable Direct2D on Intel GMAX4500 devices because of rendering
1380
* corruption discovered in bug 1180379. These seems to affect even the most
1381
* recent drivers. We're black listing all of the devices to be safe even
1382
* though we've only confirmed the issue on the G45
1383
*/
1384
APPEND_TO_DRIVER_BLOCKLIST2(
1385
OperatingSystem::Windows, DeviceFamily::IntelGMAX4500HD,
1386
nsIGfxInfo::FEATURE_DIRECT2D, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1387
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1388
"FEATURE_FAILURE_1180379");
1389
1390
IMPLEMENT_INTEL_DRIVER_BLOCKLIST(
1391
OperatingSystem::Windows7, DeviceFamily::IntelGMA500, V(5, 0, 0, 2026),
1392
"FEATURE_FAILURE_INTEL_16");
1393
IMPLEMENT_INTEL_DRIVER_BLOCKLIST(
1394
OperatingSystem::Windows7, DeviceFamily::IntelGMA900,
1395
GfxDriverInfo::allDriverVersions, "FEATURE_FAILURE_INTEL_17");
1396
IMPLEMENT_INTEL_DRIVER_BLOCKLIST(
1397
OperatingSystem::Windows7, DeviceFamily::IntelGMA950,
1398
V(8, 15, 10, 1930), "FEATURE_FAILURE_INTEL_18");
1399
IMPLEMENT_INTEL_DRIVER_BLOCKLIST(
1400
OperatingSystem::Windows7, DeviceFamily::IntelGMA3150,
1401
V(8, 14, 10, 1972), "FEATURE_FAILURE_INTEL_19");
1402
IMPLEMENT_INTEL_DRIVER_BLOCKLIST(
1403
OperatingSystem::Windows7, DeviceFamily::IntelGMAX3000,
1404
V(7, 15, 10, 1666), "FEATURE_FAILURE_INTEL_20");
1405
IMPLEMENT_INTEL_DRIVER_BLOCKLIST(
1406
OperatingSystem::Windows7, DeviceFamily::IntelGMAX4500HD,
1407
V(7, 15, 10, 1666), "FEATURE_FAILURE_INTEL_21");
1408
IMPLEMENT_INTEL_DRIVER_BLOCKLIST(
1409
OperatingSystem::Windows7, DeviceFamily::IntelHDGraphicsToSandyBridge,
1410
V(7, 15, 10, 1666), "FEATURE_FAILURE_INTEL_22");
1411
1412
// Bug 1074378
1413
APPEND_TO_DRIVER_BLOCKLIST(
1414
OperatingSystem::Windows7, DeviceFamily::IntelGMAX4500HD,
1415
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1416
DRIVER_EQUAL, V(8, 15, 10, 1749), "FEATURE_FAILURE_BUG_1074378_1",
1417
"8.15.10.2342");
1418
APPEND_TO_DRIVER_BLOCKLIST(
1419
OperatingSystem::Windows7, DeviceFamily::IntelHDGraphicsToSandyBridge,
1420
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1421
DRIVER_EQUAL, V(8, 15, 10, 1749), "FEATURE_FAILURE_BUG_1074378_2",
1422
"8.15.10.2342");
1423
1424
/* OpenGL on any Intel hardware is discouraged */
1425
APPEND_TO_DRIVER_BLOCKLIST2(
1426
OperatingSystem::Windows, DeviceFamily::IntelAll,
1427
nsIGfxInfo::FEATURE_OPENGL_LAYERS, nsIGfxInfo::FEATURE_DISCOURAGED,
1428
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1429
"FEATURE_FAILURE_INTEL_OGL_DIS");
1430
1431
/**
1432
* Disable acceleration on Intel HD 3000 for graphics drivers
1433
* <= 8.15.10.2321. See bug 1018278 and bug 1060736.
1434
*/
1435
APPEND_TO_DRIVER_BLOCKLIST(
1436
OperatingSystem::Windows, DeviceFamily::IntelHD3000,
1437
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1438
DRIVER_BUILD_ID_LESS_THAN_OR_EQUAL, 2321, "FEATURE_FAILURE_BUG_1018278",
1439
"X.X.X.2342");
1440
1441
/**
1442
* Disable D2D on Win7 on Intel Haswell for graphics drivers build id <=
1443
* 4578. See bug 1432610
1444
*/
1445
APPEND_TO_DRIVER_BLOCKLIST2(OperatingSystem::Windows7,
1446
DeviceFamily::IntelHDGraphicsToHaswell,
1447
nsIGfxInfo::FEATURE_DIRECT2D,
1448
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1449
DRIVER_BUILD_ID_LESS_THAN_OR_EQUAL, 4578,
1450
"FEATURE_FAILURE_BUG_1432610");
1451
1452
/* Disable D2D on Win7 on Intel HD Graphics on driver <= 8.15.10.2302
1453
* See bug 806786
1454
*/
1455
APPEND_TO_DRIVER_BLOCKLIST2(
1456
OperatingSystem::Windows7, DeviceFamily::IntelMobileHDGraphics,
1457
nsIGfxInfo::FEATURE_DIRECT2D,
1458
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN_OR_EQUAL,
1459
V(8, 15, 10, 2302), "FEATURE_FAILURE_BUG_806786");
1460
1461
/* Disable D2D on Win8 on Intel HD Graphics on driver <= 8.15.10.2302
1462
* See bug 804144 and 863683
1463
*/
1464
APPEND_TO_DRIVER_BLOCKLIST2(
1465
OperatingSystem::Windows8, DeviceFamily::IntelMobileHDGraphics,
1466
nsIGfxInfo::FEATURE_DIRECT2D,
1467
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN_OR_EQUAL,
1468
V(8, 15, 10, 2302), "FEATURE_FAILURE_BUG_804144");
1469
1470
/* Disable D2D on Win7 on Intel HD Graphics on driver == 8.15.10.2418
1471
* See bug 1433790
1472
*/
1473
APPEND_TO_DRIVER_BLOCKLIST2(
1474
OperatingSystem::Windows7, DeviceFamily::IntelHDGraphicsToSandyBridge,
1475
nsIGfxInfo::FEATURE_DIRECT2D,
1476
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_EQUAL,
1477
V(8, 15, 10, 2418), "FEATURE_FAILURE_BUG_1433790");
1478
1479
/* Disable D3D11 layers on Intel G41 express graphics and Intel GM965, Intel
1480
* X3100, for causing device resets. See bug 1116812.
1481
*/
1482
APPEND_TO_DRIVER_BLOCKLIST2(
1483
OperatingSystem::Windows, DeviceFamily::Bug1116812,
1484
nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS,
1485
nsIGfxInfo::FEATURE_BLOCKED_DEVICE, DRIVER_LESS_THAN,
1486
GfxDriverInfo::allDriverVersions, "FEATURE_FAILURE_BUG_1116812");
1487
1488
/* Disable D3D11 layers on Intel GMA 3150 for failing to allocate a shared
1489
* handle for textures. See bug 1207665. Additionally block D2D so we don't
1490
* accidentally use WARP.
1491
*/
1492
APPEND_TO_DRIVER_BLOCKLIST2(
1493
OperatingSystem::Windows, DeviceFamily::Bug1207665,
1494
nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS,
1495
nsIGfxInfo::FEATURE_BLOCKED_DEVICE, DRIVER_LESS_THAN,
1496
GfxDriverInfo::allDriverVersions, "FEATURE_FAILURE_BUG_1207665_1");
1497
APPEND_TO_DRIVER_BLOCKLIST2(
1498
OperatingSystem::Windows, DeviceFamily::Bug1207665,
1499
nsIGfxInfo::FEATURE_DIRECT2D, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1500
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1501
"FEATURE_FAILURE_BUG_1207665_2");
1502
1503
APPEND_TO_DRIVER_BLOCKLIST2(
1504
OperatingSystem::Windows10, DeviceFamily::QualcommAll,
1505
nsIGfxInfo::FEATURE_DIRECT2D,
1506
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN,
1507
GfxDriverInfo::allDriverVersions, "FEATURE_FAILURE_QUALCOMM");
1508
1509
// Bug 1548410. Disable hardware accelerated video decoding on
1510
// Qualcomm drivers used on Windows on ARM64 which are known to
1511
// cause BSOD's and output suprious green frames while decoding video.
1512
// Bug 1592826 expands the blacklist.
1513
APPEND_TO_DRIVER_BLOCKLIST2(
1514
OperatingSystem::Windows10, DeviceFamily::QualcommAll,
1515
nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING,
1516
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN_OR_EQUAL,
1517
V(25, 18, 10440, 0), "FEATURE_FAILURE_BUG_1592826");
1518
1519
/* Disable D2D on AMD Catalyst 14.4 until 14.6
1520
* See bug 984488
1521
*/
1522
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1523
OperatingSystem::Windows, DeviceFamily::AtiAll,
1524
nsIGfxInfo::FEATURE_DIRECT2D,
1525
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1526
DRIVER_BETWEEN_INCLUSIVE_START, V(14, 1, 0, 0), V(14, 2, 0, 0),
1527
"FEATURE_FAILURE_BUG_984488_1", "ATI Catalyst 14.6+");
1528
1529
/* Disable D3D9 layers on NVIDIA 6100/6150/6200 series due to glitches
1530
* whilst scrolling. See bugs: 612007, 644787 & 645872.
1531
*/
1532
APPEND_TO_DRIVER_BLOCKLIST2(
1533
OperatingSystem::Windows, DeviceFamily::NvidiaBlockD3D9Layers,
1534
nsIGfxInfo::FEATURE_DIRECT3D_9_LAYERS,
1535
nsIGfxInfo::FEATURE_BLOCKED_DEVICE, DRIVER_LESS_THAN,
1536
GfxDriverInfo::allDriverVersions, "FEATURE_FAILURE_BUG_612007");
1537
1538
/* Microsoft RemoteFX; blocked less than 6.2.0.0 */
1539
APPEND_TO_DRIVER_BLOCKLIST(
1540
OperatingSystem::Windows, DeviceFamily::MicrosoftAll,
1541
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1542
DRIVER_LESS_THAN, V(6, 2, 0, 0), "< 6.2.0.0",
1543
"FEATURE_FAILURE_REMOTE_FX");
1544
1545
/* Bug 1008759: Optimus (NVidia) crash. Disable D2D on NV 310M. */
1546
APPEND_TO_DRIVER_BLOCKLIST2(
1547
OperatingSystem::Windows, DeviceFamily::Nvidia310M,
1548
nsIGfxInfo::FEATURE_DIRECT2D, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1549
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1550
"FEATURE_FAILURE_BUG_1008759");
1551
1552
/* Bug 1139503: DXVA crashes with ATI cards on windows 10. */
1553
APPEND_TO_DRIVER_BLOCKLIST2(
1554
OperatingSystem::Windows10, DeviceFamily::AtiAll,
1555
nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING,
1556
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_EQUAL,
1557
V(15, 200, 1006, 0), "FEATURE_FAILURE_BUG_1139503");
1558
1559
/* Bug 1213107: D3D9 crashes with ATI cards on Windows 7. */
1560
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1561
OperatingSystem::Windows7, DeviceFamily::AtiAll,
1562
nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING,
1563
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_BETWEEN_INCLUSIVE,
1564
V(8, 861, 0, 0), V(8, 862, 6, 5000), "FEATURE_FAILURE_BUG_1213107_1",
1565
"Radeon driver > 8.862.6.5000");
1566
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1567
OperatingSystem::Windows7, DeviceFamily::AtiAll,
1568
nsIGfxInfo::FEATURE_WEBGL_ANGLE,
1569
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_BETWEEN_INCLUSIVE,
1570
V(8, 861, 0, 0), V(8, 862, 6, 5000), "FEATURE_FAILURE_BUG_1213107_2",
1571
"Radeon driver > 8.862.6.5000");
1572
1573
/* This may not be needed at all */
1574
APPEND_TO_DRIVER_BLOCKLIST2(
1575
OperatingSystem::Windows7, DeviceFamily::Bug1155608,
1576
nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING,
1577
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN,
1578
V(8, 15, 10, 2869), "FEATURE_FAILURE_INTEL_W7_HW_DECODING");
1579
1580
/* Bug 1203199/1092166: DXVA startup crashes on some intel drivers. */
1581
APPEND_TO_DRIVER_BLOCKLIST(OperatingSystem::Windows, DeviceFamily::IntelAll,
1582
nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING,
1583
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1584
DRIVER_BUILD_ID_LESS_THAN_OR_EQUAL, 2849,
1585
"FEATURE_FAILURE_BUG_1203199_1",
1586
"Intel driver > X.X.X.2849");
1587
1588
APPEND_TO_DRIVER_BLOCKLIST2(
1589
OperatingSystem::Windows, DeviceFamily::Nvidia8800GTS,
1590
nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING,
1591
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_EQUAL,
1592
V(9, 18, 13, 4052), "FEATURE_FAILURE_BUG_1203199_2");
1593
1594
/* Bug 1137716: XXX this should really check for the matching Intel piece as
1595
* well. Unfortunately, we don't have the infrastructure to do that */
1596
APPEND_TO_DRIVER_BLOCKLIST_RANGE_GPU2(
1597
OperatingSystem::Windows7, DeviceFamily::Bug1137716,
1598
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1599
DRIVER_BETWEEN_INCLUSIVE, V(8, 17, 12, 5730), V(8, 17, 12, 6901),
1600
"FEATURE_FAILURE_BUG_1137716", "Nvidia driver > 8.17.12.6901");
1601
1602
/* Bug 1153381: WebGL issues with D3D11 ANGLE on Intel. These may be fixed
1603
* by an ANGLE update. */
1604
APPEND_TO_DRIVER_BLOCKLIST2(
1605
OperatingSystem::Windows, DeviceFamily::IntelGMAX4500HD,
1606
nsIGfxInfo::FEATURE_DIRECT3D_11_ANGLE,
1607
nsIGfxInfo::FEATURE_BLOCKED_DEVICE, DRIVER_LESS_THAN,
1608
GfxDriverInfo::allDriverVersions, "FEATURE_FAILURE_BUG_1153381");
1609
1610
/* Bug 1336710: Crash in rx::Blit9::initialize. */
1611
APPEND_TO_DRIVER_BLOCKLIST2(
1612
OperatingSystem::WindowsXP, DeviceFamily::IntelGMAX4500HD,
1613
nsIGfxInfo::FEATURE_WEBGL_ANGLE, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1614
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1615
"FEATURE_FAILURE_BUG_1336710");
1616
1617
APPEND_TO_DRIVER_BLOCKLIST2(
1618
OperatingSystem::WindowsXP, DeviceFamily::IntelHDGraphicsToSandyBridge,
1619
nsIGfxInfo::FEATURE_WEBGL_ANGLE, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1620
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1621
"FEATURE_FAILURE_BUG_1336710");
1622
1623
/* Bug 1304360: Graphical artifacts with D3D9 on Windows 7. */
1624
APPEND_TO_DRIVER_BLOCKLIST2(OperatingSystem::Windows7,
1625
DeviceFamily::IntelGMAX3000,
1626
nsIGfxInfo::FEATURE_DIRECT3D_9_LAYERS,
1627
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1628
DRIVER_BUILD_ID_LESS_THAN_OR_EQUAL, 1749,
1629
"FEATURE_FAILURE_INTEL_W7_D3D9_LAYERS");
1630
1631
#if defined(_M_X64)
1632
if (DetectBrokenAVX()) {
1633
APPEND_TO_DRIVER_BLOCKLIST2(
1634
OperatingSystem::Windows7, DeviceFamily::IntelAll,
1635
nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS,
1636
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN,
1637
GfxDriverInfo::allDriverVersions, "FEATURE_FAILURE_BUG_1403353");
1638
}
1639
#endif
1640
1641
////////////////////////////////////
1642
// WebGL
1643
1644
// Older than 5-15-2016
1645
APPEND_TO_DRIVER_BLOCKLIST2(
1646
OperatingSystem::Windows, DeviceFamily::AtiAll,
1647
nsIGfxInfo::FEATURE_WEBGL_OPENGL, nsIGfxInfo::FEATURE_DISCOURAGED,
1648
DRIVER_LESS_THAN, V(16, 200, 1010, 1002), "WEBGL_NATIVE_GL_OLD_AMD");
1649
1650
// Older than 11-18-2015
1651
APPEND_TO_DRIVER_BLOCKLIST2(
1652
OperatingSystem::Windows, DeviceFamily::IntelAll,
1653
nsIGfxInfo::FEATURE_WEBGL_OPENGL, nsIGfxInfo::FEATURE_DISCOURAGED,
1654
DRIVER_BUILD_ID_LESS_THAN, 4331, "WEBGL_NATIVE_GL_OLD_INTEL");
1655
1656
// Older than 2-23-2016
1657
APPEND_TO_DRIVER_BLOCKLIST2(
1658
OperatingSystem::Windows, DeviceFamily::NvidiaAll,
1659
nsIGfxInfo::FEATURE_WEBGL_OPENGL, nsIGfxInfo::FEATURE_DISCOURAGED,
1660
DRIVER_LESS_THAN, V(10, 18, 13, 6200), "WEBGL_NATIVE_GL_OLD_NVIDIA");
1661
1662
////////////////////////////////////
1663
// FEATURE_DX_INTEROP2
1664
1665
// All AMD.
1666
APPEND_TO_DRIVER_BLOCKLIST2(
1667
OperatingSystem::Windows, DeviceFamily::AtiAll,
1668
nsIGfxInfo::FEATURE_DX_INTEROP2,
1669
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN,
1670
GfxDriverInfo::allDriverVersions, "DX_INTEROP2_AMD_CRASH");
1671
1672
////////////////////////////////////
1673
// FEATURE_D3D11_KEYED_MUTEX
1674
1675
// bug 1359416
1676
APPEND_TO_DRIVER_BLOCKLIST2(
1677
OperatingSystem::Windows, DeviceFamily::IntelHDGraphicsToSandyBridge,
1678
nsIGfxInfo::FEATURE_D3D11_KEYED_MUTEX,
1679
nsIGfxInfo::FEATURE_BLOCKED_DEVICE, DRIVER_LESS_THAN,
1680
GfxDriverInfo::allDriverVersions, "FEATURE_FAILURE_BUG_1359416");
1681
1682
// bug 1419264
1683
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1684
OperatingSystem::Windows7, DeviceFamily::NvidiaAll,
1685
nsIGfxInfo::FEATURE_ADVANCED_LAYERS,
1686
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_BETWEEN_INCLUSIVE,
1687
V(23, 21, 13, 8569), V(23, 21, 13, 9135), "FEATURE_FAILURE_BUG_1419264",
1688
"Windows 10");
1689
1690
// Bug 1447141, for causing device creation crashes.
1691
APPEND_TO_DRIVER_BLOCKLIST2(
1692
OperatingSystem::Windows7, DeviceFamily::Bug1447141,
1693
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1694
DRIVER_EQUAL, V(15, 201, 2201, 0), "FEATURE_FAILURE_BUG_1447141_1");
1695
APPEND_TO_DRIVER_BLOCKLIST2(
1696
OperatingSystem::Windows7, DeviceFamily::Bug1447141,
1697
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1698
DRIVER_EQUAL, V(15, 201, 1701, 0), "FEATURE_FAILURE_BUG_1447141_1");
1699
1700
// bug 1457758
1701
APPEND_TO_DRIVER_BLOCKLIST2(
1702
OperatingSystem::Windows, DeviceFamily::NvidiaAll,
1703
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1704
DRIVER_EQUAL, V(24, 21, 13, 9731), "FEATURE_FAILURE_BUG_1457758");
1705
1706
////////////////////////////////////
1707
// FEATURE_DX_NV12
1708
1709
// Bug 1437334
1710
APPEND_TO_DRIVER_BLOCKLIST2(
1711
OperatingSystem::Windows, DeviceFamily::IntelHDGraphicsToSandyBridge,
1712
nsIGfxInfo::FEATURE_DX_NV12, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
1713
DRIVER_BUILD_ID_LESS_THAN_OR_EQUAL, 4459,
1714
"FEATURE_BLOCKED_DRIVER_VERSION");
1715
1716
////////////////////////////////////
1717
// FEATURE_DX_P010
1718
1719
APPEND_TO_DRIVER_BLOCKLIST2(
1720
OperatingSystem::Windows, DeviceFamily::NvidiaAll,
1721
nsIGfxInfo::FEATURE_DX_P010, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1722
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1723
"FEATURE_UNQUALIFIED_P010_NVIDIA");
1724
1725
////////////////////////////////////
1726
// FEATURE_WEBRENDER
1727
1728
// Block some specific Nvidia cards for being too low-powered.
1729
APPEND_TO_DRIVER_BLOCKLIST2(
1730
OperatingSystem::Windows10, DeviceFamily::NvidiaBlockWebRender,
1731
nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1732
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1733
"FEATURE_UNQUALIFIED_WEBRENDER_NVIDIA_BLOCKED");
1734
1735
// Block all Windows versions other than Windows 10.
1736
APPEND_TO_DRIVER_BLOCKLIST2(
1737
OperatingSystem::Windows7, DeviceFamily::All,
1738
nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1739
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1740
"FEATURE_UNQUALIFIED_WEBRENDER_WINDOWS_7");
1741
APPEND_TO_DRIVER_BLOCKLIST2(
1742
OperatingSystem::Windows8, DeviceFamily::All,
1743
nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1744
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1745
"FEATURE_UNQUALIFIED_WEBRENDER_WINDOWS_8");
1746
APPEND_TO_DRIVER_BLOCKLIST2(
1747
OperatingSystem::Windows8_1, DeviceFamily::All,
1748
nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
1749
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
1750
"FEATURE_UNQUALIFIED_WEBRENDER_WINDOWS_8_1");
1751
1752
// Bug 1525084 - Window jumps with certain Intel drivers
1753
// On nightly, we use a more conversative range of drivers that we have
1754
// confirmed the issue occurs with. On beta/release, we block everything
1755
// earlier to minimize the probability of missing a particular driver.
1756
#ifdef NIGHTLY_BUILD
1757
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1758
OperatingSystem::Windows, DeviceFamily::IntelAll,
1759
nsIGfxInfo::FEATURE_WEBRENDER,
1760
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_BETWEEN_INCLUSIVE,
1761
V(10, 18, 15, 4256), V(10, 18, 15, 4281),
1762
"FEATURE_FAILURE_WEBRENDER_INTEL_BAD_DRIVER",
1763
"Intel driver >= 21.20.16.4590");
1764
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1765
OperatingSystem::Windows, DeviceFamily::IntelAll,
1766
nsIGfxInfo::FEATURE_WEBRENDER,
1767
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_BETWEEN_INCLUSIVE,
1768
V(20, 19, 15, 4285), V(20, 19, 15, 4835),
1769
"FEATURE_FAILURE_WEBRENDER_INTEL_BAD_DRIVER",
1770
"Intel driver >= 21.20.16.4590");
1771
APPEND_TO_DRIVER_BLOCKLIST_RANGE(
1772
OperatingSystem::Windows, DeviceFamily::IntelAll,
1773
nsIGfxInfo::FEATURE_WEBRENDER,
1774
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_BETWEEN_INCLUSIVE,
1775
V(21, 20, 16, 4471), V(21, 20, 16, 4565),
1776
"FEATURE_FAILURE_WEBRENDER_INTEL_BAD_DRIVER",
1777
"Intel driver >= 21.20.16.4590");
1778
#else
1779
APPEND_TO_DRIVER_BLOCKLIST2(
1780
OperatingSystem::Windows, DeviceFamily::IntelAll,
1781
nsIGfxInfo::FEATURE_WEBRENDER,
1782
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN,
1783
V(21, 20, 16, 4590), "Intel driver >= 21.20.16.4590");
1784
#endif
1785
1786
// Bug 1615421 / 1607860 - Playing videos appear to crash with WebRender
1787
// with this particular driver.
1788
APPEND_TO_DRIVER_BLOCKLIST2(
1789
OperatingSystem::Windows, DeviceFamily::IntelAll,
1790
nsIGfxInfo::FEATURE_WEBRENDER,
1791
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_EQUAL,
1792
V(23, 20, 16, 4973), "Intel driver > 23.20.16.4973");
1793
1794
////////////////////////////////////
1795
// FEATURE_WEBRENDER - ALLOWLIST
1796
1797
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
1798
OperatingSystem::RecentWindows10, ScreenSizeStatus::Small,
1799
BatteryStatus::Present, DesktopEnvironment::All, WindowProtocol::All,
1800
DriverVendor::All, DeviceFamily::NvidiaRolloutWebRender,
1801
nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_ALLOW_ALWAYS,
1802
DRIVER_GREATER_THAN_OR_EQUAL, V(26, 21, 14, 3200),
1803
"FEATURE_ROLLOUT_BATTERY_S_SCRN_NV_RECENT");
1804
1805
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
1806
OperatingSystem::Windows10, ScreenSizeStatus::Small,
1807
BatteryStatus::None, DesktopEnvironment::All, WindowProtocol::All,
1808
DriverVendor::All, DeviceFamily::IntelRolloutWebRender,
1809
nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_ALLOW_ALWAYS,
1810
DRIVER_COMPARISON_IGNORED, V(0, 0, 0, 0),
1811
"FEATURE_ROLLOUT_DESKTOP_INTEL_S_SCRN");
1812
1813
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
1814
OperatingSystem::RecentWindows10, ScreenSizeStatus::Small,
1815
BatteryStatus::Present, DesktopEnvironment::All, WindowProtocol::All,
1816
DriverVendor::All, DeviceFamily::IntelModernRolloutWebRender,
1817
nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_ALLOW_ALWAYS,
1818
DRIVER_GREATER_THAN, V(25, 20, 100, 6472),
1819
"FEATURE_ROLLOUT_DESKTOP_INTEL_S_SCRN");
1820
1821
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
1822
OperatingSystem::Windows10, ScreenSizeStatus::All, BatteryStatus::None,
1823
DesktopEnvironment::All, WindowProtocol::All, DriverVendor::All,
1824
DeviceFamily::AtiRolloutWebRender, nsIGfxInfo::FEATURE_WEBRENDER,
1825
nsIGfxInfo::FEATURE_ALLOW_ALWAYS, DRIVER_COMPARISON_IGNORED,
1826
V(0, 0, 0, 0), "FEATURE_ROLLOUT_DESKTOP_AMD");
1827
1828
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
1829
OperatingSystem::Windows10, ScreenSizeStatus::All, BatteryStatus::None,
1830
DesktopEnvironment::All, WindowProtocol::All, DriverVendor::All,
1831
DeviceFamily::NvidiaRolloutWebRender, nsIGfxInfo::FEATURE_WEBRENDER,
1832
nsIGfxInfo::FEATURE_ALLOW_ALWAYS, DRIVER_COMPARISON_IGNORED,
1833
V(0, 0, 0, 0), "FEATURE_ROLLOUT_DESKTOP_NV");
1834
1835
#ifdef EARLY_BETA_OR_EARLIER
1836
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
1837
OperatingSystem::Windows10, ScreenSizeStatus::Small,
1838
BatteryStatus::Present, DesktopEnvironment::All, WindowProtocol::All,
1839
DriverVendor::All, DeviceFamily::AtiRolloutWebRender,
1840
nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_ALLOW_ALWAYS,
1841
DRIVER_COMPARISON_IGNORED, V(0, 0, 0, 0),
1842
"FEATURE_ROLLOUT_NIGHTLY_BATTERY_AMD_S_SCRN");
1843
1844
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
1845
OperatingSystem::Windows10, ScreenSizeStatus::SmallAndMedium,
1846
BatteryStatus::Present, DesktopEnvironment::All, WindowProtocol::All,
1847
DriverVendor::All, DeviceFamily::IntelRolloutWebRender,
1848
nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_ALLOW_ALWAYS,
1849
DRIVER_COMPARISON_IGNORED, V(0, 0, 0, 0),
1850
"FEATURE_ROLLOUT_NIGHTLY_BATTERY_INTEL_S_SCRN");
1851
#endif
1852
1853
#ifdef NIGHTLY_BUILD
1854
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
1855
OperatingSystem::Windows10, ScreenSizeStatus::All, BatteryStatus::All,
1856
DesktopEnvironment::All, WindowProtocol::All, DriverVendor::All,
1857
DeviceFamily::NvidiaRolloutWebRender, nsIGfxInfo::FEATURE_WEBRENDER,
1858
nsIGfxInfo::FEATURE_ALLOW_QUALIFIED, DRIVER_COMPARISON_IGNORED,
1859
V(0, 0, 0, 0), "FEATURE_ROLLOUT_NIGHTLY_LISTED_NVIDIA");
1860
1861
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
1862
OperatingSystem::Windows10, ScreenSizeStatus::All, BatteryStatus::All,
1863
DesktopEnvironment::All, WindowProtocol::All, DriverVendor::All,
1864
DeviceFamily::AtiRolloutWebRender, nsIGfxInfo::FEATURE_WEBRENDER,
1865
nsIGfxInfo::FEATURE_ALLOW_QUALIFIED, DRIVER_COMPARISON_IGNORED,
1866
V(0, 0, 0, 0), "FEATURE_ROLLOUT_NIGHTLY_LISTED_AMD");
1867
1868
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
1869
OperatingSystem::Windows10, ScreenSizeStatus::All, BatteryStatus::All,
1870
DesktopEnvironment::All, WindowProtocol::All, DriverVendor::All,
1871
DeviceFamily::IntelRolloutWebRender, nsIGfxInfo::FEATURE_WEBRENDER,