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 <[email protected]>
---
 drmresources.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
-- 
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to