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

Commit f3db8193 authored by Ingrid Gallardo's avatar Ingrid Gallardo Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: fix typo in sde QoS settings calculation



Fix typo in the calculation of the sde internal
QoS settings.

Change-Id: If38effc244e4352e064644ac6c7c1386a15c2768
Signed-off-by: default avatarIngrid Gallardo <ingridg@codeaurora.org>
parent 70be28c9
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -258,16 +258,16 @@ static inline int _sde_plane_calc_fill_level(struct drm_plane *plane,
				((src_width + 32) * fmt->bpp);
		} else {
			/* non NV12 */
			total_fl = (fixed_buff_size / 2 - hflip_bytes) /
				((src_width + 32) * fmt->bpp * 2);
			total_fl = (fixed_buff_size / 2 - hflip_bytes) * 2 /
				((src_width + 32) * fmt->bpp);
		}
	} else {
		if (pstate->multirect_mode == SDE_SSPP_MULTIRECT_PARALLEL) {
			total_fl = (fixed_buff_size / 2 - hflip_bytes) /
				((src_width + 32) * fmt->bpp * 2);
			total_fl = (fixed_buff_size / 2 - hflip_bytes) * 2 /
				((src_width + 32) * fmt->bpp);
		} else {
			total_fl = (fixed_buff_size - hflip_bytes) /
				((src_width + 32) * fmt->bpp * 2);
			total_fl = (fixed_buff_size - hflip_bytes) * 2 /
				((src_width + 32) * fmt->bpp);
		}
	}