From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B4C9C2BB1D for ; Thu, 12 Mar 2020 14:04:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5DCF920716 for ; Thu, 12 Mar 2020 14:04:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DCF920716 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AF2F66EACC; Thu, 12 Mar 2020 14:04:41 +0000 (UTC) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0A5A96E201; Thu, 12 Mar 2020 14:04:40 +0000 (UTC) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 07:04:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,545,1574150400"; d="scan'208";a="232063290" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by orsmga007.jf.intel.com with SMTP; 12 Mar 2020 07:04:35 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 12 Mar 2020 16:04:34 +0200 Date: Thu, 12 Mar 2020 16:04:34 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Pankaj Bharadiya Message-ID: <20200312140434.GG13686@intel.com> References: <20200225070545.4482-1-pankaj.laxminarayan.bharadiya@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200225070545.4482-1-pankaj.laxminarayan.bharadiya@intel.com> X-Patchwork-Hint: comment User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [Intel-gfx] [RFC][PATCH 0/5] Introduce drm scaling filter property X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, ankit.k.nautiyal@intel.com, mihail.atanassov@arm.com Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Tue, Feb 25, 2020 at 12:35:40PM +0530, Pankaj Bharadiya wrote: > Integer scaling (IS) is a nearest-neighbor upscaling technique that > simply scales up the existing pixels by an integer (i.e., whole > number) multiplier. Nearest-neighbor (NN) interpolation works by > filling in the missing color values in the upscaled image with that of > the coordinate-mapped nearest source pixel value. > = > Both IS and NN preserve the clarity of the original image. In > contrast, traditional upscaling algorithms, such as bilinear or > bicubic interpolation, result in blurry upscaled images because they > employ interpolation techniques that smooth out the transition from > one pixel to another. Therefore, integer scaling is particularly > useful for pixel art games that rely on sharp, blocky images to > deliver their distinctive look. > = > Many gaming communities have been asking for integer-mode scaling > support, some links and background: > = > https://software.intel.com/en-us/articles/integer-scaling-support-on-inte= l-graphics > http://tanalin.com/en/articles/lossless-scaling/ > https://community.amd.com/thread/209107 > https://www.nvidia.com/en-us/geforce/forums/game-ready-drivers/13/1002/fe= ature-request-nonblurry-upscaling-at-integer-rat/ > = > This patch series - > - Introduces new scaling filter property to allow userspace to > select the driver's default scaling filter or Nearest-neighbor(NN) > filter for scaling operations on crtc/plane. > - Implements and enable integer scaling for i915 > = > Userspace patch series link: TBD. That needs to be done or this will go nowhere. > = > Thanks to Shashank for initiating this work. His initial RFC can be > found here [1] > = > [1] https://patchwork.freedesktop.org/patch/337082/ > = > Modifications done in this series - > - refactored code and incorporated initial review comments and > added 2 scaling filter types (default and NN) to begin with. > - added scaling filter property support for planes and new API > helpers for drivers to setup this property. > - rewrote code to enable integer scaling and NN filter for i915 > = > = > Pankaj Bharadiya (5): > drm: Introduce scaling filter property > drm/drm-kms.rst: Add Scaling filter property documentation > drm/i915: Enable scaling filter for plane and pipe > drm/i915: Introduce scaling filter related registers and bit fields. > drm/i915/display: Add Nearest-neighbor based integer scaling support > = > Documentation/gpu/drm-kms.rst | 6 ++ > drivers/gpu/drm/drm_atomic_uapi.c | 8 ++ > drivers/gpu/drm/drm_crtc.c | 16 +++ > drivers/gpu/drm/drm_mode_config.c | 13 +++ > drivers/gpu/drm/drm_plane.c | 35 +++++++ > drivers/gpu/drm/i915/display/intel_display.c | 100 ++++++++++++++++++- > drivers/gpu/drm/i915/display/intel_display.h | 2 + > drivers/gpu/drm/i915/display/intel_sprite.c | 32 ++++-- > drivers/gpu/drm/i915/i915_reg.h | 21 ++++ > include/drm/drm_crtc.h | 10 ++ > include/drm/drm_mode_config.h | 6 ++ > include/drm/drm_plane.h | 14 +++ > 12 files changed, 252 insertions(+), 11 deletions(-) > = > -- = > 2.23.0 -- = Ville Syrj=E4l=E4 Intel _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx