video/rockchip: rga2: Fix the misconfiguration of srcover's globalalpha

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I547ce7a8938a37ac96223f7435b94ec839b3ceba
This commit is contained in:
Yu Qiaowei
2021-08-26 15:48:18 +08:00
parent cf30583ce1
commit a6c8eee776

View File

@@ -1278,9 +1278,9 @@ void RGA_MSG_2_RGA2_MSG(struct rga_req *req_rga, struct rga2_req *req)
alpha_mode_1 = 0x3010;
}
else if ((req_rga->alpha_rop_mode & 3) == 1) {
/* dst use globalAlpha, and dst does not have pixelAlpha. */
alpha_mode_0 = 0x3012;
alpha_mode_1 = 0x3012;
/* Do not use globalAlpha. */
alpha_mode_0 = 0x3212;
alpha_mode_1 = 0x3212;
}
else if ((req_rga->alpha_rop_mode & 3) == 2) {
/* dst use globalAlpha, and dst has pixelAlpha. */
@@ -1288,9 +1288,9 @@ void RGA_MSG_2_RGA2_MSG(struct rga_req *req_rga, struct rga2_req *req)
alpha_mode_1 = 0x3014;
}
else {
/* Do not use globalAlpha. */
alpha_mode_0 = 0x3212;
alpha_mode_1 = 0x3212;
/* dst use globalAlpha, and dst does not have pixelAlpha. */
alpha_mode_0 = 0x3012;
alpha_mode_1 = 0x3012;
}
req->alpha_mode_0 = alpha_mode_0;
req->alpha_mode_1 = alpha_mode_1;