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

Commit 90cb5694 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 83cb12c3 f3db8193
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);
		}
	}