Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1566790ybh; Fri, 13 Mar 2020 03:36:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsywIznlc8/9yywfv2BzbnkQNyVTEzznN8KUYChZQ2UlHGshXmoNJYbk3IIcPQmXiGD7gDt X-Received: by 2002:a9d:5f7:: with SMTP id 110mr9279973otd.73.1584095792377; Fri, 13 Mar 2020 03:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584095792; cv=none; d=google.com; s=arc-20160816; b=aDClybFy4GySoWY9MjO3V6N24N7Li8Hc1ppVTaJN5HC4DAvuzqQM+l076EYfgzVKLb gtNIwJIqI4FHZqB5c/YF6ANk3yNOztglM71nfSHSw1Z2OtgZwoYm9wYSHa7hMB140pRO C3aJaX5rEUzjmz2reUI7Brnw53UEs0gGuWlYbm/4uD0P3i2qE6QOy/3hsFfrpA8XxDtd KmxmOBKU6lFPGZLCKWB5jwx7ypHV2xAQDRe21knIfZBeRB4hjgIrB7uq98UHHZ5iK575 WR7Pg1/ofyPd/8sFofhm/yrE+DyqF0V+OBipFSPK+KSZPmvUXRhy2Xn50SurGAGrVUzU lriQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=Yu1F07KiJM4zIMHBA/pTlCdX8C+5JeBe8NdK0WwqpMw=; b=ezqsPMy+L1HwaqHuCUxZbBH/+W9zYLrjerEMBu+q1cAhUsZY5cQv+FN3U6hD0XNrLC ZSBs2z30MFV+clhWvPLsAOMjInnuXEWBP2rvzbHprtBucVkZThYeo/cooElSUjChh+lY jJZopciicvhEQg2ZUjuaoXPjcLzcOsnbV4y/dN0i0vi/EbFCGRFu1rXjjx1w+TzgXCLs ULM4hpvKwINN1np1ZStkofwYy1LrIZ6k3cmxJ1d3HkVFPZ5ejxMwoA0jgU08q7UfvlJs Ofh5ehZhXS2Y+vO1xQYYAP+iHMvaU7G+to8w0FfYYdR2UAgUFZmnWkQozbblXHBMKeEA FYaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t+DAYhG7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p25si4384620oto.168.2020.03.13.03.36.19; Fri, 13 Mar 2020 03:36:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t+DAYhG7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726462AbgCMKfh (ORCPT + 99 others); Fri, 13 Mar 2020 06:35:37 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43862 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbgCMKfh (ORCPT ); Fri, 13 Mar 2020 06:35:37 -0400 Received: by mail-lj1-f194.google.com with SMTP id r7so9913754ljp.10 for ; Fri, 13 Mar 2020 03:35:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=Yu1F07KiJM4zIMHBA/pTlCdX8C+5JeBe8NdK0WwqpMw=; b=t+DAYhG7qZya+mMgPgPjsh25iLsJVCgbs+G4lIpa+jQ/t+gwC0XyKU9111l5Ud5ggW lvM8s2jbJGjk+4kF4IidIE84LiwApQuL/y3Mt3d/vLpyaO7TLfdWOXMbdpOe71sPUd9y 6o3HiXTc4TAINGsjZebsAug10a591bEG17xVACJQsnjeS/t9F79rtps6uM2mJyHBE/CL 7PEqOwW6lJw0X3sAGl/nqDKHVctgdGPStxW2OERM1jfrn/22y03rtXtRs0b3ZNd2VQB3 chXAYtm/hmjt9DZbVaIzBLEFEh1uA03LTSISDBrTijxybRbLwXzt+PEMCpZMptQkcdXi CEdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=Yu1F07KiJM4zIMHBA/pTlCdX8C+5JeBe8NdK0WwqpMw=; b=T/J2fyUuKO6h2d556/n9VD6d9qwThTcivM+xQJGLEDU0Q5tTzh3HEZcYCkE6orstvf iiXpvV/Xsq61APet86n6s79ga4ArqKjX/08rzgegcpXWPLfVRRwMKbAtoPqyZk+Eyw6q 9PuFhwyRDSZA4IXaeRwXBT1hagxnc/pLAhrR5jEZAXcvq6skci0e1h2sKGWj9nxnHyUa 6ehBt1+AdyL2iG3EPtM5/l/GOF7jkciuoPRza+SjpNmv/9FNJNPFa75WeSMUgOSZjm2t DsibxsxWg9Tqnz/y9rc486aUxuIo3nDZHAVC2YzjooABvuvnZamRq5UP/6Qmy/1bhiES HcvA== X-Gm-Message-State: ANhLgQ2uBPL1mQRv3lgXj1EP8m4YKdGiGjelAJzin2LFXjZ0yWRgsJJ/ IOGW3zOgq0dl3ORpG/KkPbQ= X-Received: by 2002:a2e:860e:: with SMTP id a14mr5458220lji.218.1584095733534; Fri, 13 Mar 2020 03:35:33 -0700 (PDT) Received: from eldfell.localdomain ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id m15sm2389533ljo.8.2020.03.13.03.35.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 03:35:33 -0700 (PDT) Date: Fri, 13 Mar 2020 12:35:21 +0200 From: Pekka Paalanen To: Ville =?UTF-8?B?U3lyasOkbMOk?= Cc: "Laxminarayan Bharadiya, Pankaj" , "Lattannavar, Sameer" , "tzimmermann@suse.de" , "Kunche, Kishore" , "airlied@linux.ie" , "intel-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "Nautiyal, Ankit K" , "mihail.atanassov@arm.com" Subject: Re: [RFC][PATCH 0/5] Introduce drm scaling filter property Message-ID: <20200313123521.6de3ce48@eldfell.localdomain> In-Reply-To: <20200312160112.GH13686@intel.com> References: <20200225070545.4482-1-pankaj.laxminarayan.bharadiya@intel.com> <20200312140434.GG13686@intel.com> <20200312160112.GH13686@intel.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/vMWhQLKRKGPaem0p/lu3FKo"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/vMWhQLKRKGPaem0p/lu3FKo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 12 Mar 2020 18:01:12 +0200 Ville Syrj=C3=A4l=C3=A4 wrote: > On Thu, Mar 12, 2020 at 03:37:03PM +0000, Laxminarayan Bharadiya, Pankaj = wrote: > >=20 > > =20 > > > -----Original Message----- > > > From: Ville Syrj=C3=A4l=C3=A4 > > > Sent: 12 March 2020 19:35 > > > To: Laxminarayan Bharadiya, Pankaj > > > > > > Cc: jani.nikula@linux.intel.com; daniel@ffwll.ch; intel- > > > gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org; airlied@l= inux.ie; > > > maarten.lankhorst@linux.intel.com; tzimmermann@suse.de; > > > mripard@kernel.org; mihail.atanassov@arm.com; linux- > > > kernel@vger.kernel.org; Nautiyal, Ankit K > > > Subject: Re: [RFC][PATCH 0/5] Introduce drm scaling filter property > > >=20 > > > On Tue, Feb 25, 2020 at 12:35:40PM +0530, Pankaj Bharadiya wrote: =20 > > > > 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-o= n-i > > > > ntel-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/1= 002 > > > > /feature-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. =20 > > >=20 > > > That needs to be done or this will go nowhere. =20 > >=20 > > Yes, Sameer is working on enabling this feature in Kodi.=20 > > Sameer, please share link here once you post patches. =20 >=20 > And who is doing it for other stuff? I think this would be most useful > for games/emulators and such so IMO we should find a way to get it to > the hands of users doing those things. >=20 Hi, FWIW, being able to tell KMS to use nearest-neighbor filtering could be useful for https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/394 as a follow-up. Thanks, pq --Sig_/vMWhQLKRKGPaem0p/lu3FKo Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAl5rYekACgkQI1/ltBGq qqfTpQ//W/9o7NNQ0qIjJ0FzcNtolpUfAaokRetxnFtvjd2lG4v3D5wrTvXVfctR Dtl709DyxtciqtUnE527NbCbW4qbAVhbhamgMHkweMRhw2WyxtzUmLTAbIRd63Z8 0Wd/RpHUaZrlqnzPkuOJC61cK/8vzWO1+p++1pzCI6EnvQvx38QGFaQRq5MEEICp RQC+zBx8A+n1dbWorM4Fc31ZD4AUL2IFFIztLWSd2XMrZfFUH3QwqPM9HYnjpjDy Qm/tKnFUp7WsfBnK92xG8y3kSNFu4fumU1U/EMybspbhU1L1w3AtkadWExDU6xmS i5w237YKaaYZxNvMMwmzMSXKpDrfIQLWAlNg1RLU+GVjwXWxUZsCOsU9IQD9fGxC wKp2yVUJnCh7h/5XdlEEjBcnmUz2weusORX+yp00MLc9ujgleZxm1qqnUPR04AWD LHV7wP9qmaNYW+1qxEZyAfBRszqhDIvzkRv4zWynqGrRvOfyvb2kgt7MoHpfK+EY OuDPJtSSPhMvYuJFlFTM6P88WrFdOMF2quhKHLfoNpAbJYp7dHFAZty9D4ouf+Rn 0vdMsOkPm9Cp/4T4N49An9jguyozTaqax1tFlbkuRwBK47V6KGUWhiSir0x/OYYK XIJjZ6PY3+MDKpfVT1RlnVcSJfO8rt++VnNymrJBO/vHZnt2Uuo= =3GVp -----END PGP SIGNATURE----- --Sig_/vMWhQLKRKGPaem0p/lu3FKo--