iMX6: kodi: add patch to quirk the plane usage

This commit is contained in:
Lukas Rusak 2019-07-27 10:24:28 -07:00
parent db005886dc
commit 7ae7d87260
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3

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);