[Patch v2 6/6] drm/omap: Allow wider display when a virtual plane is available
Tomi Valkeinen
tomi.valkeinen at ti.com
Thu Apr 5 10:40:14 UTC 2018
On 26/03/18 19:21, Benoit Parrot wrote:
> Add an exception case when filtering out display mode so that if
> a virtual wide plane is available then display wider than 2048 can be
> supported as long as the required timing parameters can also be met.
>
> Signed-off-by: Benoit Parrot <bparrot at ti.com>
> ---
> drivers/gpu/drm/omapdrm/omap_connector.c | 3 ++-
> drivers/gpu/drm/omapdrm/omap_plane.c | 12 ++++++++++++
> drivers/gpu/drm/omapdrm/omap_plane.h | 1 +
> 3 files changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/omapdrm/omap_connector.c b/drivers/gpu/drm/omapdrm/omap_connector.c
> index d5e059abb555..517f7fa80ce1 100644
> --- a/drivers/gpu/drm/omapdrm/omap_connector.c
> +++ b/drivers/gpu/drm/omapdrm/omap_connector.c
> @@ -203,7 +203,8 @@ static int omap_connector_mode_valid(struct drm_connector *connector,
> u16 width, height;
>
> priv->dispc_ops->ovl_get_max_size(&width, &height);
> - if (mode->hdisplay > width)
> + if (mode->hdisplay > width &&
> + !omap_have_any_virtual_plane(dev))
This doesn't sound correct. It's not whether we have any virtual planes,
but whether we have virtual planes for this display.
Tomi
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
More information about the dri-devel
mailing list