forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpardini: config: rk35xx kernel patches: desperate attempt at black-v…
…ideo kodi vs vop2
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
...nel/rk35xx-vendor-6.1/7001-vop2-rbga2101010-capability-fix-6.1-rkr3-adapted-version.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Ricardo Pardini <[email protected]> | ||
Date: Mon, 30 Sep 2024 00:52:58 +0200 | ||
Subject: vop2 rbga2101010 capability fix (6.1-rkr3 adapted version) | ||
|
||
- from https://raw.githubusercontent.com/wiki/hbiyik/ffmpeg-rockchip/patches/rockchip-kernel/0002-vop2_rgba2101010_capability_fix.patch | ||
--- | ||
drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
diff --git a/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c b/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | ||
index 31691b910fc6e..3e2fc783639c8 100644 | ||
--- a/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | ||
+++ b/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | ||
@@ -24,22 +24,20 @@ | ||
.write_mask = _write_mask, \ | ||
} | ||
|
||
#define VOP_REG(off, _mask, _shift) \ | ||
_VOP_REG(off, _mask, _shift, false) | ||
|
||
#define VOP_REG_MASK(off, _mask, s) \ | ||
_VOP_REG(off, _mask, s, true) | ||
|
||
static const uint32_t formats_for_cluster[] = { | ||
- DRM_FORMAT_XRGB2101010, | ||
- DRM_FORMAT_XBGR2101010, | ||
DRM_FORMAT_XRGB8888, | ||
DRM_FORMAT_ARGB8888, | ||
DRM_FORMAT_XBGR8888, | ||
DRM_FORMAT_ABGR8888, | ||
DRM_FORMAT_RGB888, | ||
DRM_FORMAT_BGR888, | ||
DRM_FORMAT_RGB565, | ||
DRM_FORMAT_BGR565, | ||
DRM_FORMAT_YUV420_8BIT, /* yuv420_8bit non-Linear mode only */ | ||
DRM_FORMAT_YUV420_10BIT, /* yuv420_10bit non-Linear mode only */ | ||
-- | ||
Armbian | ||
|