summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch
new file mode 100644
index 00000000..7f4954a9
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch
@@ -0,0 +1,44 @@
1From af96930d2412b4af27407a48e262ce1bb2e32427 Mon Sep 17 00:00:00 2001
2From: Sudeep Basavaraj <sudeep.basavaraj@ti.com>
3Date: Tue, 5 Jan 2010 18:58:18 +0530
4Subject: [PATCH 13/45] OMAP3630:DSS2:Enable Pre-Multiplied Alpha Support
5
6Enables dss to process color formats with pre-mulitplied alpha values.
7With this we can have alpha values defined for each pixel
8and hence can have different blending values for each pixel.
9
10Signed-off-by: Sudeep Basavaraj <sudeep.basavaraj@ti.com>
11Signed-off-by: Kishore Y <kishore.y@ti.com>
12---
13 drivers/video/omap2/dss/dispc.c | 8 ++++++++
14 1 files changed, 8 insertions(+), 0 deletions(-)
15
16diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
17index f7acf87..c6d5fc5 100644
18--- a/drivers/video/omap2/dss/dispc.c
19+++ b/drivers/video/omap2/dss/dispc.c
20@@ -913,6 +913,11 @@ static void _dispc_set_vid_color_conv(enum omap_plane plane, bool enable)
21 dispc_write_reg(dispc_reg_att[plane], val);
22 }
23
24+static void _dispc_set_alpha_blend_attrs(enum omap_plane plane, bool enable)
25+{
26+ REG_FLD_MOD(dispc_reg_att[plane], enable ? 1 : 0, 28, 28);
27+}
28+
29 void dispc_enable_replication(enum omap_plane plane, bool enable)
30 {
31 int bit;
32@@ -1689,6 +1694,9 @@ static int _dispc_setup_plane(enum omap_plane plane,
33
34 _dispc_set_rotation_attrs(plane, rotation, mirror, color_mode);
35
36+ if (cpu_is_omap3630() && (plane != OMAP_DSS_VIDEO1))
37+ _dispc_set_alpha_blend_attrs(plane, 1);
38+
39 if (plane != OMAP_DSS_VIDEO1)
40 _dispc_setup_global_alpha(plane, global_alpha);
41
42--
431.6.6.1
44