summaryrefslogtreecommitdiffstats
path: root/minui/graphics_drm.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-08-27 05:00:57 +0200
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-08-27 05:00:57 +0200
commitde6fd81d996a11640bed16e1cc7e6767fe6a11ba (patch)
treebfa552bd67d9c8ea3f9c55e2e680bc2b029faa20 /minui/graphics_drm.cpp
parentSnap for 8995547 from c59f83be2228a6672debe2a0d62059d702382661 to udc-d1-release (diff)
parent[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: cb5879f9de -s ours am: 377ed97670 -s ours (diff)
downloadandroid_bootable_recovery-de6fd81d996a11640bed16e1cc7e6767fe6a11ba.tar
android_bootable_recovery-de6fd81d996a11640bed16e1cc7e6767fe6a11ba.tar.gz
android_bootable_recovery-de6fd81d996a11640bed16e1cc7e6767fe6a11ba.tar.bz2
android_bootable_recovery-de6fd81d996a11640bed16e1cc7e6767fe6a11ba.tar.lz
android_bootable_recovery-de6fd81d996a11640bed16e1cc7e6767fe6a11ba.tar.xz
android_bootable_recovery-de6fd81d996a11640bed16e1cc7e6767fe6a11ba.tar.zst
android_bootable_recovery-de6fd81d996a11640bed16e1cc7e6767fe6a11ba.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.