[PATCH hwc v1] drm_hwcomposer: Ignore unknown connector types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
 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
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux