Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (28 sloc) 1.07 KB
From 189d58343c7784d009f78e1147038197ac5dbf25 Mon Sep 17 00:00:00 2001
From: Jacob Chen <jacob2.chen@rock-chips.com>
Date: Tue, 6 Jun 2017 15:28:02 +0800
Subject: [PATCH 2/2] drm/rockchip: make black a color key
Change-Id: I9d35f427aa210f8936dd381a1c499c06125d716e
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index 0999af2..981da09 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@ -1265,6 +1265,12 @@ static void vop_plane_atomic_update(struct drm_plane *plane,
VOP_WIN_SET_EXT(vop, win, csc, r2r_en, !!r2r_table);
VOP_WIN_SET_EXT(vop, win, csc, r2y_en, !!r2y_table);
}
+
+ if (plane->type == DRM_PLANE_TYPE_PRIMARY) {
+ VOP_WIN_SET(vop, win, key_color, 0x00000000);
+ VOP_WIN_SET(vop, win, key_en, 1);
+ }
+
VOP_WIN_SET(vop, win, enable, 1);
spin_unlock(&vop->reg_lock);
vop->is_iommu_needed = true;
--
1.9.1