From a8a449c00390f973bcbdfd2ce3410fae8c29e91c Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Mon, 7 Sep 2020 17:26:41 +0200 Subject: [PATCH] kodi (RPi4): drop patch to hide pixel wrap issue Signed-off-by: Matthias Reichl --- ...i4-hack-Try-to-hide-pixel-wrap-issue.patch | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 projects/RPi/devices/RPi4/patches/kodi/0003-popcornmix-pi4-hack-Try-to-hide-pixel-wrap-issue.patch diff --git a/projects/RPi/devices/RPi4/patches/kodi/0003-popcornmix-pi4-hack-Try-to-hide-pixel-wrap-issue.patch b/projects/RPi/devices/RPi4/patches/kodi/0003-popcornmix-pi4-hack-Try-to-hide-pixel-wrap-issue.patch deleted file mode 100644 index 48096bd265..0000000000 --- a/projects/RPi/devices/RPi4/patches/kodi/0003-popcornmix-pi4-hack-Try-to-hide-pixel-wrap-issue.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 48b41250d45c98ca19c8684bc5cdf4cde208c814 Mon Sep 17 00:00:00 2001 -From: popcornmix -Date: Wed, 8 Apr 2020 11:19:22 +0100 -Subject: [PATCH 7/8] pi4: hack: Try to hide pixel wrap issue - ---- - .../VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp | 4 ++-- - xbmc/windowing/gbm/DRMAtomic.cpp | 4 ++-- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp -index bcb4badb9b..4aa0230460 100644 ---- a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp -+++ b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp -@@ -238,11 +238,11 @@ void CVideoLayerBridgeDRMPRIME::SetVideoPlane(CVideoBufferDRMPRIME* buffer, cons - m_DRM->AddProperty(plane, "CRTC_ID", m_DRM->GetCrtc()->crtc->crtc_id); - m_DRM->AddProperty(plane, "SRC_X", 0); - m_DRM->AddProperty(plane, "SRC_Y", 0); -- m_DRM->AddProperty(plane, "SRC_W", buffer->GetWidth() << 16); -+ m_DRM->AddProperty(plane, "SRC_W", (buffer->GetWidth()-2) << 16); - m_DRM->AddProperty(plane, "SRC_H", buffer->GetHeight() << 16); - m_DRM->AddProperty(plane, "CRTC_X", static_cast(destRect.x1) & ~1); - m_DRM->AddProperty(plane, "CRTC_Y", static_cast(destRect.y1) & ~1); -- m_DRM->AddProperty(plane, "CRTC_W", (static_cast(destRect.Width()) + 1) & ~1); -+ m_DRM->AddProperty(plane, "CRTC_W", (static_cast(destRect.Width()) + 1) & ~1)-2; - m_DRM->AddProperty(plane, "CRTC_H", (static_cast(destRect.Height()) + 1) & ~1); - } - -diff --git a/xbmc/windowing/gbm/DRMAtomic.cpp b/xbmc/windowing/gbm/DRMAtomic.cpp -index 092ad3fc18..178705236c 100644 ---- a/xbmc/windowing/gbm/DRMAtomic.cpp -+++ b/xbmc/windowing/gbm/DRMAtomic.cpp -@@ -69,11 +69,11 @@ void CDRMAtomic::DrmAtomicCommit(int fb_id, int flags, bool rendered, bool video - AddProperty(m_gui_plane, "CRTC_ID", m_crtc->crtc->crtc_id); - AddProperty(m_gui_plane, "SRC_X", 0); - AddProperty(m_gui_plane, "SRC_Y", 0); -- AddProperty(m_gui_plane, "SRC_W", m_width << 16); -+ AddProperty(m_gui_plane, "SRC_W", (m_width-2) << 16); - AddProperty(m_gui_plane, "SRC_H", m_height << 16); - AddProperty(m_gui_plane, "CRTC_X", 0); - AddProperty(m_gui_plane, "CRTC_Y", 0); -- AddProperty(m_gui_plane, "CRTC_W", m_mode->hdisplay); -+ AddProperty(m_gui_plane, "CRTC_W", m_mode->hdisplay-2); - AddProperty(m_gui_plane, "CRTC_H", m_mode->vdisplay); - } - else if (videoLayer && !CServiceBroker::GetGUI()->GetWindowManager().HasVisibleControls()) --- -2.20.1 -