summaryrefslogtreecommitdiffstats
path: root/minui/graphics_drm.cpp
diff options
context:
space:
mode:
authorWeizhung Ding <weizhungding@google.com>2022-07-19 10:34:43 +0200
committerFred Chiou <fredchiou@google.com>2022-08-31 10:36:07 +0200
commite43c5033cb5b82d9e46ee398524a8972dc87b896 (patch)
tree2616683e7cd0fe88bf44f6f1d51ed4eb9b5f1da8 /minui/graphics_drm.cpp
parent[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 9aebac2722 -s ours am: a4a9ad3e99 -s ours (diff)
downloadandroid_bootable_recovery-e43c5033cb5b82d9e46ee398524a8972dc87b896.tar
android_bootable_recovery-e43c5033cb5b82d9e46ee398524a8972dc87b896.tar.gz
android_bootable_recovery-e43c5033cb5b82d9e46ee398524a8972dc87b896.tar.bz2
android_bootable_recovery-e43c5033cb5b82d9e46ee398524a8972dc87b896.tar.lz
android_bootable_recovery-e43c5033cb5b82d9e46ee398524a8972dc87b896.tar.xz
android_bootable_recovery-e43c5033cb5b82d9e46ee398524a8972dc87b896.tar.zst
android_bootable_recovery-e43c5033cb5b82d9e46ee398524a8972dc87b896.zip
Diffstat (limited to '')
-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.