diff mbox

[hwc,v1] drm_hwcomposer: Ignore unknown connector types

Message ID 1516980881-1098-1-git-send-email-Alexandru-Cosmin.Gheorghe@arm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alexandru-Cosmin Gheorghe Jan. 26, 2018, 3:34 p.m. UTC
drm_hwcomposer splits the connectors in two categories: internal and
external, the other ones just fall through the cracks a break things
down the line.
Found this issue on mali-dp with the writeback connector patches
from [1].

[1] https://patchwork.kernel.org/patch/9727637/

Signed-off-by: Alexandru Gheorghe <Alexandru-Cosmin.Gheorghe@arm.com>
---
 drmresources.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drmresources.cpp b/drmresources.cpp
index 32dd376..d582b3a 100644
--- a/drmresources.cpp
+++ b/drmresources.cpp
@@ -153,8 +153,8 @@  int DrmResources::Init() {
       ALOGE("Init connector %d failed", res->connectors[i]);
       break;
     }
-
-    connectors_.emplace_back(std::move(conn));
+    if (conn->valid_type())
+      connectors_.emplace_back(std::move(conn));
   }
 
   // First look for primary amongst internal connectors