Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a67699f4 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: sde: Fix data width calculation when widebus is enabled"

parents a3d1758f ebd2c679
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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) {
		if (p->wide_bus_en)
			data_width = DIV_ROUND_UP(p->dce_bytes_per_line, 6);
		else
			data_width = DIV_ROUND_UP(p->dce_bytes_per_line, 3);

		if (p->wide_bus_en)
			data_width >>= 1;
	} else if (!dp_intf && p->wide_bus_en) {
		data_width = p->width >> 1;
	} else {