disp: msm: sde: add rotation support with writeback block
MDSS 10.0.0 HW is capable to rotate input image in WB hardware block. WB hardware can only perform rotation of clockwise 90 degrees and this can be used to achieve the required 2D rotation by adding appropriate FLIP transformation to the SSPP. This change adds required software support in display driver to excericse input image rotation through WB block. Change-Id: Ia5c2fc84eabb68f29d130333316527b60d02cbc7 Signed-off-by: Prabhanjan Kandula <quic_pkandula@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
f3c2c5e37d
commit
3128214eac
@@ -200,6 +200,13 @@ static void sde_hw_wb_setup_format(struct sde_hw_wb *ctx,
|
||||
if (SDE_FORMAT_IS_DX(fmt))
|
||||
dst_format |= BIT(21);
|
||||
|
||||
/* Set A5x tile bit for uncompressed tile formats also */
|
||||
if (SDE_FORMAT_IS_TILE(fmt))
|
||||
dst_format |= BIT(31);
|
||||
|
||||
if (data->rotate_90)
|
||||
dst_format |= BIT(11);
|
||||
|
||||
pattern = (fmt->element[3] << 24) |
|
||||
(fmt->element[2] << 16) |
|
||||
(fmt->element[1] << 8) |
|
||||
|
Reference in New Issue
Block a user