Bug 1901659 - Enable hardware WebRender on XWayland for Mesa 17+. r=aosmond

Partial present remains disabled due to bug 1677892.

Differential Revision: https://phabricator.services.mozilla.com/D222706
This commit is contained in:
Botond Ballo 2024-09-19 00:07:29 +00:00
Родитель 000f6fea38
Коммит 3d539ffc8e
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -957,14 +957,14 @@ const nsTArray<GfxDriverInfo>& GfxInfo::GetGfxDriverInfo() {
// Bug 1635186 - Poor performance with video playing in a background window
// on XWayland. Keep in sync with FEATURE_X11_EGL below to only enable them
// together by default. Only Mesa and Nvidia binary drivers are expected
// on Wayland rigth now.
// on Wayland right now.
APPEND_TO_DRIVER_BLOCKLIST_EXT(
OperatingSystem::Linux, ScreenSizeStatus::All, BatteryStatus::All,
WindowProtocol::XWayland, DriverVendor::MesaAll, DeviceFamily::All,
nsIGfxInfo::FEATURE_WEBRENDER,
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN,
V(21, 0, 0, 0), "FEATURE_FAILURE_WEBRENDER_BUG_1635186",
"Mesa 21.0.0.0");
V(17, 0, 0, 0), "FEATURE_FAILURE_WEBRENDER_BUG_1635186",
"Mesa 17.0.0.0");
// Bug 1815481 - Disable mesa drivers in virtual machines.
APPEND_TO_DRIVER_BLOCKLIST_EXT(
@ -1119,6 +1119,14 @@ const nsTArray<GfxDriverInfo>& GfxInfo::GetGfxDriverInfo() {
nsIGfxInfo::FEATURE_BLOCKED_DEVICE, DRIVER_COMPARISON_IGNORED,
V(0, 0, 0, 0), "FEATURE_ROLLOUT_WR_PARTIAL_PRESENT_NVIDIA_BINARY", "");
APPEND_TO_DRIVER_BLOCKLIST_EXT(
OperatingSystem::Linux, ScreenSizeStatus::All, BatteryStatus::All,
WindowProtocol::XWayland, DriverVendor::MesaAll, DeviceFamily::All,
nsIGfxInfo::FEATURE_WEBRENDER_PARTIAL_PRESENT,
nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION, DRIVER_LESS_THAN,
V(21, 0, 0, 0), "FEATURE_FAILURE_WEBRENDER_PARTIAL_PRESENT_BUG_1677892",
"Mesa 21.0.0.0");
////////////////////////////////////
APPEND_TO_DRIVER_BLOCKLIST_EXT(