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

Commit f5df39a8 authored by Jayaprakash's avatar Jayaprakash
Browse files

drm/msm/sde: update mixercount check in writeback usecase



when writeback display width is greater than mixer
width use two layermixers, else single layermixer
is sufficient.

Change-Id: I9f1cc0fb839422d178c951cd197084f2a525a408
Signed-off-by: default avatarJayaprakash <jmadiset@codeaurora.org>
parent 7b2ef2bf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -345,7 +345,7 @@ int sde_wb_get_mode_info(struct drm_connector *connector,
		hdisplay = max(hdisplay, wb_dev->modes[i].hdisplay);

	topology = &mode_info->topology;
	topology->num_lm = (max_mixer_width <= hdisplay) ? dual_lm : single_lm;
	topology->num_lm = (max_mixer_width < hdisplay) ? dual_lm : single_lm;
	topology->num_enc = no_enc;
	topology->num_intf = single_intf;