Skip to content

Commit

Permalink
[WPE] WPE Platform: don't check DPMS property in DRM platform initial…
Browse files Browse the repository at this point in the history
…ization

https://bugs.webkit.org/show_bug.cgi?id=268533

Reviewed by Carlos Garcia Campos.

This change removes the DPMS property check. The DPMS is a legacy
property for setting the power state of the connector. For atomic
drivers this is only provided for backwards compatibility with
existing drivers.

Related-To: #23608

* Source/WebKit/WPEPlatform/wpe/drm/WPEDRM.cpp:
(WPE::DRM::Connector::create):

Canonical link: https://commits.webkit.org/273895@main
  • Loading branch information
psaavedra committed Feb 1, 2024
1 parent 6c98f52 commit fdeaefe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Source/WebKit/WPEPlatform/wpe/drm/WPEDRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ std::unique_ptr<Connector> Connector::create(int fd, drmModeConnector* connector
if (!properties)
return nullptr;

auto dpms = drmPropertyForName(fd, properties.get(), "DPMS");
if (dpms.first && dpms.second == DRM_MODE_DPMS_OFF)
return nullptr;

Properties props = { drmPropertyForName(fd, properties.get(), "CRTC_ID"), drmPropertyForName(fd, properties.get(), "link-status") };
return makeUnique<Connector>(connector, WTFMove(props));
}
Expand Down

0 comments on commit fdeaefe

Please sign in to comment.