summaryrefslogtreecommitdiffstats
path: root/minui/graphics_drm.cpp
diff options
context:
space:
mode:
authorWeizhung Ding <weizhungding@google.com>2022-07-19 10:34:43 +0200
committerWeizhung Ding <weizhungding@google.com>2022-08-18 09:28:49 +0200
commitafd0a1b666fdb6f2140b8527e0bacbe0d802ed6d (patch)
tree536fca272df1e302509b6fb6b1f1a7e14eecc3e6 /minui/graphics_drm.cpp
parentMerge "DO NOT MERGE - Merge Android 13" (diff)
downloadandroid_bootable_recovery-afd0a1b666fdb6f2140b8527e0bacbe0d802ed6d.tar
android_bootable_recovery-afd0a1b666fdb6f2140b8527e0bacbe0d802ed6d.tar.gz
android_bootable_recovery-afd0a1b666fdb6f2140b8527e0bacbe0d802ed6d.tar.bz2
android_bootable_recovery-afd0a1b666fdb6f2140b8527e0bacbe0d802ed6d.tar.lz
android_bootable_recovery-afd0a1b666fdb6f2140b8527e0bacbe0d802ed6d.tar.xz
android_bootable_recovery-afd0a1b666fdb6f2140b8527e0bacbe0d802ed6d.tar.zst
android_bootable_recovery-afd0a1b666fdb6f2140b8527e0bacbe0d802ed6d.zip
Diffstat (limited to 'minui/graphics_drm.cpp')
-rw-r--r--minui/graphics_drm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/minui/graphics_drm.cpp b/minui/graphics_drm.cpp
index c55702276..6c3a5bdee 100644
--- a/minui/graphics_drm.cpp
+++ b/minui/graphics_drm.cpp
@@ -200,6 +200,10 @@ void MinuiBackendDrm::Blank(bool blank, DrmConnector index) {
}
}
+bool MinuiBackendDrm::HasMultipleConnectors() {
+ return (drm[DRM_SEC].GRSurfaceDrms[0] && drm[DRM_SEC].GRSurfaceDrms[1]);
+}
+
static drmModeCrtc* find_crtc_for_connector(int fd, drmModeRes* resources,
drmModeConnector* connector) {
// Find the encoder. If we already have one, just use it.