Skip to content

Commit

Permalink
video: rockchip: rga3: fix compatibility with legacy global alpha config
Browse files Browse the repository at this point in the history
Fixes a typo in 7291693, which broke compatibility with librga API 1.9.x
and older when using DST over blend/composite and premultiplied alpha.

Signed-off-by: nyanmisaka <[email protected]>
  • Loading branch information
nyanmisaka authored and amazingfate committed Oct 20, 2023
1 parent d974a9f commit 533b152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/video/rockchip/rga3/rga2_reg_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,7 @@ static void rga_cmd_to_rga2_cmd(struct rga_scheduler_t *scheduler,
req->alpha_config.bg_global_alpha_value = 0xff;
}
} else {
req->alpha_config.bg_global_alpha_value = 0xff;
req->alpha_config.fg_global_alpha_value = 0xff;
req->alpha_config.bg_global_alpha_value = 0xff;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/rockchip/rga3/rga3_reg_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ static void rga_cmd_to_rga3_cmd(struct rga_req *req_rga, struct rga3_req *req)
req->alpha_config.bg_global_alpha_value = 0xff;
}
} else {
req->alpha_config.bg_global_alpha_value = 0xff;
req->alpha_config.fg_global_alpha_value = 0xff;
req->alpha_config.bg_global_alpha_value = 0xff;
}

Expand Down

0 comments on commit 533b152

Please sign in to comment.