Bug 1615049 - Shipping WebRender to modern intel laptops with small screen. r=aosmond

Differential Revision: https://phabricator.services.mozilla.com/D66643

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jessie Bonisteel 2020-03-13 18:35:55 +00:00
parent a67d7debed
commit 37e2c5ab60
3 changed files with 45 additions and 33 deletions

View File

@ -454,6 +454,41 @@ const GfxDeviceFamily* GfxDriverInfo::GetDeviceFamily(DeviceFamily id) {
APPEND_RANGE(0x06c0, INT32_MAX);
break;
case DeviceFamily::IntelRolloutWebRender:
// broadwell gt2+ (gen8)
APPEND_DEVICE(0x1612);
APPEND_DEVICE(0x1616);
APPEND_DEVICE(0x161a);
APPEND_DEVICE(0x161b);
APPEND_DEVICE(0x161d);
APPEND_DEVICE(0x161e);
APPEND_DEVICE(0x1622);
APPEND_DEVICE(0x1626);
APPEND_DEVICE(0x162a);
APPEND_DEVICE(0x162b);
APPEND_DEVICE(0x162d);
APPEND_DEVICE(0x162e);
APPEND_DEVICE(0x1632);
APPEND_DEVICE(0x1636);
APPEND_DEVICE(0x163a);
APPEND_DEVICE(0x163b);
APPEND_DEVICE(0x163d);
APPEND_DEVICE(0x163e);
#ifdef MOZ_WIDGET_GTK
// Gen7.5 not allowed until bug 1576637 is resolved.
APPEND_DEVICE(0x0412);
APPEND_DEVICE(0x0416);
APPEND_DEVICE(0x041a);
APPEND_DEVICE(0x041b);
APPEND_DEVICE(0x041e);
APPEND_DEVICE(0x0a12);
APPEND_DEVICE(0x0a16);
APPEND_DEVICE(0x0a1a);
APPEND_DEVICE(0x0a1b);
APPEND_DEVICE(0x0a1e);
#endif
[[fallthrough]];
case DeviceFamily::IntelModernRolloutWebRender:
// skylake gt2+
APPEND_DEVICE(0x1912);
APPEND_DEVICE(0x1913);
@ -505,39 +540,7 @@ const GfxDeviceFamily* GfxDriverInfo::GetDeviceFamily(DeviceFamily id) {
APPEND_DEVICE(0x9bc8);
APPEND_RANGE(0x9bca, 0x9bcc);
// broadwell gt2+
APPEND_DEVICE(0x1612);
APPEND_DEVICE(0x1616);
APPEND_DEVICE(0x161a);
APPEND_DEVICE(0x161b);
APPEND_DEVICE(0x161d);
APPEND_DEVICE(0x161e);
APPEND_DEVICE(0x1622);
APPEND_DEVICE(0x1626);
APPEND_DEVICE(0x162a);
APPEND_DEVICE(0x162b);
APPEND_DEVICE(0x162d);
APPEND_DEVICE(0x162e);
APPEND_DEVICE(0x1632);
APPEND_DEVICE(0x1636);
APPEND_DEVICE(0x163a);
APPEND_DEVICE(0x163b);
APPEND_DEVICE(0x163d);
APPEND_DEVICE(0x163e);
#ifdef MOZ_WIDGET_GTK
// Gen7.5 not allowed until bug 1576637 is resolved.
APPEND_DEVICE(0x0412);
APPEND_DEVICE(0x0416);
APPEND_DEVICE(0x041a);
APPEND_DEVICE(0x041b);
APPEND_DEVICE(0x041e);
APPEND_DEVICE(0x0a12);
APPEND_DEVICE(0x0a16);
APPEND_DEVICE(0x0a1a);
APPEND_DEVICE(0x0a1b);
APPEND_DEVICE(0x0a1e);
#endif
break;
case DeviceFamily::AtiRolloutWebRender:
APPEND_RANGE(0x6600, 0x66af);

View File

@ -195,6 +195,7 @@ enum class DeviceFamily : uint8_t {
NvidiaBlockWebRender,
NvidiaRolloutWebRender,
IntelRolloutWebRender,
IntelModernRolloutWebRender,
AtiRolloutWebRender,
Max

View File

@ -1810,6 +1810,14 @@ const nsTArray<GfxDriverInfo>& GfxInfo::GetGfxDriverInfo() {
DRIVER_COMPARISON_IGNORED, V(0, 0, 0, 0),
"FEATURE_ROLLOUT_DESKTOP_INTEL_S_SCRN");
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
OperatingSystem::RecentWindows10, ScreenSizeStatus::Small,
BatteryStatus::Present, DesktopEnvironment::All, WindowProtocol::All,
DriverVendor::All, DeviceFamily::IntelModernRolloutWebRender,
nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_ALLOW_ALWAYS,
DRIVER_GREATER_THAN, V(25, 20, 100, 6472),
"FEATURE_ROLLOUT_DESKTOP_INTEL_S_SCRN");
APPEND_TO_DRIVER_BLOCKLIST2_EXT(
OperatingSystem::Windows10, ScreenSizeStatus::All, BatteryStatus::None,
DesktopEnvironment::All, WindowProtocol::All, DriverVendor::All,