Merge pull request #3723 from lrusak/imx-kodi-quirk

iMX6: kodi: add patch to quirk the plane usage
This commit is contained in:
MilhouseVH 2019-07-31 17:45:08 +01:00 committed by GitHub
commit 44fa377a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,24 @@
From 91f6e594dcd0f657b17d3ffa2e64972b5fb3339d Mon Sep 17 00:00:00 2001
From: Lukas Rusak <lorusak@gmail.com>
Date: Fri, 19 Jul 2019 09:35:02 -0700
Subject: [PATCH] windowing/gbm: quirk imx-drm to only allow selecting an
overlay plane for video
---
xbmc/windowing/gbm/DRMUtils.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/xbmc/windowing/gbm/DRMUtils.cpp b/xbmc/windowing/gbm/DRMUtils.cpp
index bbbc447498cf..bb8baf42dab9 100644
--- a/xbmc/windowing/gbm/DRMUtils.cpp
+++ b/xbmc/windowing/gbm/DRMUtils.cpp
@@ -370,6 +370,9 @@ drmModePlanePtr CDRMUtils::FindPlane(drmModePlaneResPtr resources, int crtc_inde
{
case KODI_VIDEO_PLANE:
{
+ if (m_module == "imx-drm" && props->prop_values[j] != DRM_PLANE_TYPE_OVERLAY)
+ break;
+
if (SupportsFormat(plane, DRM_FORMAT_NV12))
{
CLog::Log(LOGDEBUG, "CDRMUtils::%s - found video plane %u", __FUNCTION__, plane->plane_id);