mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
disp: msm: sde: Fix data width calculation when widebus is enabled
Adjust the data width calculation to reduce the rounding off error when the widebus is enabled. Change-Id: Ia2fa4536ce519548989e2befcb22fb685f286c9e Signed-off-by: Kashish Jain <quic_kashjain@quicinc.com>
This commit is contained in:
parent
0777752947
commit
ebd2c679df
1 changed files with 4 additions and 3 deletions
|
|
@ -258,10 +258,11 @@ static void sde_hw_intf_setup_timing_engine(struct sde_hw_intf *ctx,
|
|||
data_width = p->width;
|
||||
|
||||
if (p->compression_en) {
|
||||
data_width = DIV_ROUND_UP(p->dce_bytes_per_line, 3);
|
||||
|
||||
if (p->wide_bus_en)
|
||||
data_width >>= 1;
|
||||
data_width = DIV_ROUND_UP(p->dce_bytes_per_line, 6);
|
||||
else
|
||||
data_width = DIV_ROUND_UP(p->dce_bytes_per_line, 3);
|
||||
|
||||
} else if (!dp_intf && p->wide_bus_en) {
|
||||
data_width = p->width >> 1;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue