From 2efe11f9461477842b453b70373e46e7dfc2eb11 Mon Sep 17 00:00:00 2001 From: Wayne Zou Date: Fri, 23 Nov 2012 16:18:58 +0800 Subject: [PATCH] ENGR00251836 IPU device: Support local alpha with alpha value in each pixel Add local alpha support with alpha value in each pixel, such as RGBA pixel format. Signed-off-by: Wayne Zou --- drivers/mxc/ipu3/ipu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mxc/ipu3/ipu_device.c b/drivers/mxc/ipu3/ipu_device.c index 8c58ba1c3f59..b3509ba1475f 100644 --- a/drivers/mxc/ipu3/ipu_device.c +++ b/drivers/mxc/ipu3/ipu_device.c @@ -1900,8 +1900,9 @@ static int init_ic(struct ipu_soc *ipu, struct ipu_task_entry *t) params.mem_prp_vf_mem.graphics_combine_en = 1; if (t->overlay.alpha.mode == IPU_ALPHA_MODE_GLOBAL) params.mem_prp_vf_mem.global_alpha_en = 1; - else + else if (t->overlay.alpha.loc_alp_paddr) params.mem_prp_vf_mem.alpha_chan_en = 1; + /* otherwise, alpha bending per pixel is used. */ params.mem_prp_vf_mem.alpha = t->overlay.alpha.gvalue; if (t->overlay.colorkey.enable) { params.mem_prp_vf_mem.key_color_en = 1; -- 2.39.5