Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp483464pxu; Thu, 26 Nov 2020 03:56:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwInOdHQnJbQ6Gg6SgNiUDiFYvJU4wLzKU7CxtA2o4HoRJ596ZPuBKSwLRWGuarHcroEk5L X-Received: by 2002:a17:906:c244:: with SMTP id bl4mr2254627ejb.430.1606391761303; Thu, 26 Nov 2020 03:56:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606391761; cv=none; d=google.com; s=arc-20160816; b=mZzKq7p4qT4wA04AcGWlBg11f7INeStYpbjA6OQLWDLTyem5mkd7xynuxf+FG+zJZo dCdGQRcwdGpitqm7MQLehvZl/bRexdckfHJ49S4mu5KDaimoW5jM77uscOg/yamx5ZSI p60nijFzVq7lF345/WVxBlGTiwSWvyt5NGCkk6+Rris8rrWtyxJbsH82HF8rR11/nzCG iOaaRT0ZJ2zeqQ+/uffslVtP7qa2TubUS8/tEVXWwZ0hxWdOc1VLrdZfwIrVVfX5h2hj hQbdolapO8UiTBncIu+sxUkCu8j2pN9rhhIc6VscmJpm1Kun8Po+8TZjjR/dTJ0G0MiP c7Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:message-id; bh=XrFYRjxj5hGkefmphHSbkof+YxYXs+KWnSmUDKdRNgE=; b=G3MVBJ8nBxMcEd95aOTH7d94gC2XrOERMeckghPRNTPy4NwkX60wZiDgUzGt3VUt/B IIqSfjo8LvQL9pxbTJMIEOo9WEZBjI8oHly+UTS4WqGDYVOXhYtI+A/VbZBtEn8A1U3c o1vjShdKz/OQoXJPJ4C3azXVst101LkoaBnSFqd23IX9lvUynmdEattAmFmBABRa0St/ C/LLR+6JAyUYc6BOFuehP6Doaa0M4csuAGOLM5+n5vfA8Fx3IgwFbN9C1oJckc/nxhRB 5/YzCmKUm/dYsMal/f8lFpwDvMbk8wVOPoO2/NCJCBo9C9giCX0M8whDQnShk2WrzKf2 OwWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si411275ejw.747.2020.11.26.03.55.38; Thu, 26 Nov 2020 03:56:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730775AbgKZKfv (ORCPT + 99 others); Thu, 26 Nov 2020 05:35:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729095AbgKZKfu (ORCPT ); Thu, 26 Nov 2020 05:35:50 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 246FCC0613D4 for ; Thu, 26 Nov 2020 02:35:50 -0800 (PST) Received: from [2a0a:edc0:0:900:6245:cbff:fea0:1793] (helo=kresse.office.stw.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1kiEcm-00065O-L3; Thu, 26 Nov 2020 11:35:41 +0100 Message-ID: From: Lucas Stach To: Laurentiu Palcu , Philipp Zabel , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Laurentiu Palcu , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Thu, 26 Nov 2020 11:35:38 +0100 In-Reply-To: <20201105145018.27255-1-laurentiu.palcu@oss.nxp.com> References: <20201105145018.27255-1-laurentiu.palcu@oss.nxp.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:6245:cbff:fea0:1793 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=4.0 tests=AWL,BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_SOFTFAIL,T_FILL_THIS_FORM_SHORT autolearn=no autolearn_force=no version=3.4.2 Subject: Re: [PATCH] drm/imx/dcss: allow using nearest neighbor interpolation scaling X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Do, 2020-11-05 at 16:50 +0200, Laurentiu Palcu wrote: > This patch adds support for using NN interpolation scaling by setting the > SCALING_FILTER plane property to 1. Otherwise, the default method is used. > > Signed-off-by: Laurentiu Palcu Reviewed and pushed into drm-misc-next. Regards, Lucas > --- > I had no retro pixel art games to test this with, so I used modetest to see the > results: > > To test, I used a 240x135 buffer, upscaled 8 times to 1920x1080: > * default scaling method using gaussian filter: > /usr/bin/modetest -M imx-dcss -w 33:SCALING_FILTER:0 -P 33@38:240x135*8@XR24 > * NN interpolation method: > /usr/bin/modetest -M imx-dcss -w 33:SCALING_FILTER:1 -P 33@38:240x135*8@XR24 > > Thanks, > laurentiu > > drivers/gpu/drm/imx/dcss/dcss-dev.h | 3 ++ > drivers/gpu/drm/imx/dcss/dcss-plane.c | 10 +++++- > drivers/gpu/drm/imx/dcss/dcss-scaler.c | 47 +++++++++++++++++++++----- > 3 files changed, 50 insertions(+), 10 deletions(-) > > diff --git a/drivers/gpu/drm/imx/dcss/dcss-dev.h b/drivers/gpu/drm/imx/dcss/dcss-dev.h > index c642ae17837f..1e582270c6ea 100644 > --- a/drivers/gpu/drm/imx/dcss/dcss-dev.h > +++ b/drivers/gpu/drm/imx/dcss/dcss-dev.h > @@ -7,6 +7,7 @@ > #define __DCSS_PRV_H__ > > #include > +#include > #include > #include