Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1571740pxk; Tue, 1 Sep 2020 02:01:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxUF7/M6NeMnNZZKlqFFA+Yjdg/FymW3e6pkwo3XT5jyGUoeZmUb9q6r+WpnIWo3ti4Psn X-Received: by 2002:a17:906:15cc:: with SMTP id l12mr615034ejd.7.1598950910649; Tue, 01 Sep 2020 02:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598950910; cv=none; d=google.com; s=arc-20160816; b=daQx/IOHHpI5DF3w1QvvAWHw3QB2bDT71N6SCaNETHEYytGXVUlslNRFbNJgWfWEg8 FS0yEGpaDCUUjAliNqBsXdtQKdM0uj++FcB3LkJvNgW/KFEQvaS9VGHapEE+AOA4wiP/ eGKh4TfdQkAJ9P3+whgNRGE9scl4kt0SjXnI7EqDWXH03Wgr7xRJs726XntPOEOTo4O3 JyvYJHNJwiFzM9G5pt5smPWOQBfSNqzbtTbVp/Va3dlLFiqtI7HkQ7Dp7Ss6T5B1w3Sx nOJ9USdy3b69XFOeiSJyg5I9jOQiWpnpEyT7vsIj0CNSQ60+xxyD9miVwFE4RB7U1jpf sZ/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=xS/YRlImtljqm7ETg33B59R/Pa8qsUPNDUud3zarTGk=; b=KR3BEMjSpJd8GdMK/NiHqoKYCbKkT6ibGM95XYBNLY5mbfsp2Dpyr2zSYLBYgM5Ml0 VQHOZJEmej01DkNK11pqjnzFoTZE4KcL/MtvWkHX0/qqEzDpM41uatqVqBAsNIQcuJIN ac9zzKFGzRlSgwFH2KtDgRBwl/cQqcSy18gFZj7HrLitx6zlHfBUuYc9eeYTXkDY5Q7J 2wQWzKtBrjfW7dePkZk3DgMS/82zFMN+IcMQQinwHb+q+qHQJdrN1FT/OrMdrGlh4JzJ lXlAZ7ldVR3b3z6r4QRfhu9FNmZ1oCGepn7jwZqsylQr2ngiSIuUH9WJMj33HNHq73X0 vD5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b=SJFNbnyI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si242708edn.356.2020.09.01.02.01.26; Tue, 01 Sep 2020 02:01:50 -0700 (PDT) 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; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b=SJFNbnyI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726722AbgIAI5r (ORCPT + 99 others); Tue, 1 Sep 2020 04:57:47 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:53562 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbgIAI5o (ORCPT ); Tue, 1 Sep 2020 04:57:44 -0400 Date: Tue, 01 Sep 2020 08:57:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1598950661; bh=xS/YRlImtljqm7ETg33B59R/Pa8qsUPNDUud3zarTGk=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=SJFNbnyIAbEItmUJEOrsR896BmZwgnsZxfug7OMUQETCJwyqHaQJ5XATjAPDdlExm cm8QRp1uSRQnDL4Adkx8D9PctEtm88pUNQNF5t9O27xzNmfgqsLNQsyDrCRT5w1c3M Xrdzc+jt72n788adu8dJVgZYqQcpEWi6tiPviNfk4UQKeGrBQJf/pvcbpA6VehtHbY qTCoM3bptvaf7vv7LfwhLFMjQ+hFr0MnSVh3DrYPbzyZmN1mYKIs+g3SG2euEjT/hE ZIEgxjyVnswtyIoJmDnvdmFwGEWdD9msLSEAXySmVQBq08PgSmQkQ2KkLRJNoSmsih JielrcdRjQoWw== To: =?utf-8?Q?Ville_Syrj=C3=A4l=C3=A4?= From: Simon Ser Cc: Sidong Yang , Haneen Mohammed , Rodrigo Siqueira , Emil Velikov , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Melissa Wen Reply-To: Simon Ser Subject: Re: [PATCH] drm/vkms: add support for gamma_set interface Message-ID: In-Reply-To: <20200831134852.GY6112@intel.com> References: <20200829140647.7626-1-realwakka@gmail.com> <20200831133858.GA9280@realwakka> <20200831134852.GY6112@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, August 31, 2020 3:48 PM, Ville Syrj=C3=A4l=C3=A4 wrote: > > > It doesn't seem like this IGT test's goal is to exercise support for > > > gamma LUTs. Does the test just tries to reset the gamma LUT to linear= ? > > > If so, I think the IGT test should be fixed to ignore "I don't suppor= t > > > gamma" errors. > > > > It seems like that IGT test pixel-format is to make gamma lut like belo= w. > > for (i =3D 0; i < lut_size; i++) > > lut[i] =3D (i * 0xffff / (lut_size - 1)) & mask; > > And set this table to drm driver. and test begins. It's the test about = pixel > > format. I think you're right. It's not about gamma lut. > > The point of the gamma LUT stuff in the pixel format test is to throw > away a bunch of the lsbs so that the test passes when the result is > "close enough" to the 8bpc RGB reference image. Without it we would > never get a crc match when testing non-8bpc or YCbCr formats. OK, that makes sense. Would it be sensible to: - Don't set gamma if the pixel format being tested is 8bpc - Make the test skip if the pixel format is >8bpc and gamma isn't supported