From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.bootlin.com ([62.4.15.54]:47524 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933383AbeEIHn0 (ORCPT ); Wed, 9 May 2018 03:43:26 -0400 Date: Wed, 9 May 2018 09:43:24 +0200 From: Boris Brezillon To: Eric Anholt Cc: David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, stable@vger.kernel.org Subject: Re: [PATCH] drm/vc4: Fix scaling of uni-planar formats Message-ID: <20180509094324.2139ce11@bbrezillon> In-Reply-To: <20180507181102.47ea0060@bbrezillon> References: <20180507121303.5610-1-boris.brezillon@bootlin.com> <87vabz1mu9.fsf@anholt.net> <20180507181102.47ea0060@bbrezillon> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On Mon, 7 May 2018 18:11:02 +0200 Boris Brezillon wrote: > On Mon, 07 May 2018 08:56:14 -0700 > Eric Anholt wrote: > > > Boris Brezillon writes: > > > > > When using uni-planar formats (like RGB), the scaling parameters are > > > stored in plane 0, not plane 1. > > > > > > Fixes: fc04023fafec ("drm/vc4: Add support for YUV planes.") > > > Cc: stable@vger.kernel.org > > > Signed-off-by: Boris Brezillon > > > > Reviewed-by: Eric Anholt > > > > Looking at the other branch, did I get the scl0/scl1 backwards? HVS > > docs say for non-444 YCBCR: "In these cases Channel 0 performs Y/Alpha > > scaling and Channel 1 performs CB/CR scaling and should be configured as > > appropriate." > > Didn't test, but I think rescaling of multi-planar format is correct. I just tested, and I confirm the other branch is correct.