Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp321274pxk; Wed, 2 Sep 2020 02:10:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZq+fi3Rkh+XJI/08hyJkmydcexCQF55PUhswN+8Nh94YlFphHbbNnwgx5ptJZeCOS9lGX X-Received: by 2002:a17:906:c447:: with SMTP id ck7mr5313308ejb.358.1599037844268; Wed, 02 Sep 2020 02:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599037844; cv=none; d=google.com; s=arc-20160816; b=AFwC/bvlTSmJ34sCchaovLrlOb8IsKwMJ7vWoBIhGF2ByE2vH025Smsaboz9bOC5sK 3902ygURoBLWRccu1j4x9Iv+tI4JEhavay5nPDD6rF0mMriNsSWsvL1YN83pcgKp9Nf2 AgMUvrLggy7IMnqYxKLG9ORiSPvi7sd25Z3uqXbqZmhAMpCWeKkWjWc/7Hcz/Gq1xWVF ES0ox2Gmd9duWC1ZkaFnBkWGKjZ/de4tP4562Py1yl4DeL15EeHONvfKG4dx1dN0IPmA bnb0Y3rpCOthWfI9riUdYZ/P++FDa4rziOe1nnnHzH4udbxik3xSHZylFsvcDgcLjRBE NABQ== 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=tWZLjcjpso7hjA2WIHTYXpXERR7Rr72qonBHENyVUic=; b=shkCvtUCoz1B8rWf9s2a6qdxM9pclIgkWNpHoOxerD98q9RC0Rh39inCUtLa0xZP0h eQKPHam1/4Y6AlZYmyAKKRt91Uc9L5JHoO0yUZoqZBDcVznNf4WlTZ/aq3faQlFGG3nQ NFChhkNXL/OkJ9NcmHxFCa8236p5RCwH1PcaoMR6lhYcGXT0M9slOE2DAAiX7mtLQqBo wvXQMo2nlQzNys9hpsgbe9Zdcge/NLYJyk0K+8MMpySUJXUc18QfPjfHR7l/8bMVfV4d Q3dt09aKMObQNcoEELPqPWZ8UOJFo3C9j7o9yt0EhXLyr6JI1bWCzwNGq9kUXnvByZnG SiXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b="OCtM6on/"; 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 bl4si2254956ejb.752.2020.09.02.02.10.21; Wed, 02 Sep 2020 02:10:44 -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="OCtM6on/"; 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 S1726489AbgIBJJk (ORCPT + 99 others); Wed, 2 Sep 2020 05:09:40 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:57005 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbgIBJJU (ORCPT ); Wed, 2 Sep 2020 05:09:20 -0400 Date: Wed, 02 Sep 2020 09:09:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1599037758; bh=tWZLjcjpso7hjA2WIHTYXpXERR7Rr72qonBHENyVUic=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=OCtM6on/gZ0ul9beiqs+h6tfxzqMwNoEgh0KOMhiK4wJgFngrAoHuauJBUvPBXfZR ssM3+Fp3Hl4kO/KU6fqcc5xI00srJ+T7mYBlW7KPt6coX3GdGPLb7XoKuWotg6liAn UWLMEyEo8Rd3g7rl+56KDPfy4auvXuOm9rLI8Av8jNi3V2exqaGNVmdasJjMG0s42j vz+NH/qSj4XBMGp6eLJ/6WTNrKjW62+OBXwVw8Z2yyahKMRhV+TsoAJsvIlPBEPCh3 3HdEXAjZVzWHEZLX91ti8HnEcZJSmOwJ64n4ajA/mHAa2PmFUwd3d+IKIROMUJS5zm K+YTYFZMtCjaQ== To: Daniel Vetter From: Simon Ser Cc: =?utf-8?Q?Ville_Syrj=C3=A4l=C3=A4?= , Haneen Mohammed , Rodrigo Siqueira , Emil Velikov , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Melissa Wen , Sidong Yang Reply-To: Simon Ser Subject: Re: [PATCH] drm/vkms: add support for gamma_set interface Message-ID: In-Reply-To: <20200901132656.GD2352366@phenom.ffwll.local> References: <20200829140647.7626-1-realwakka@gmail.com> <20200831133858.GA9280@realwakka> <20200831134852.GY6112@intel.com> <20200901132656.GD2352366@phenom.ffwll.local> 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 Tuesday, September 1, 2020 3:26 PM, Daniel Vetter wrot= e: > On Tue, Sep 01, 2020 at 08:57:37AM +0000, Simon Ser wrote: > > > On Monday, August 31, 2020 3:48 PM, Ville Syrj=C3=A4l=C3=A4 ville.syrja= la@linux.intel.com 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 li= near? > > > > > If so, I think the IGT test should be fixed to ignore "I don't su= pport > > > > > gamma" errors. > > > > > > > > It seems like that IGT test pixel-format is to make gamma lut like = below. > > > > 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 ab= out 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 > > Hm not sure what 8bpc format you mean here, because we have C8 (needs > gamma table or doesn't work) and the 8b greyscale one with the R8 one. If > you ask for legacy 8bpc you get C8. Why do we need a gamma LUT for C8 and R8? There shouldn't be any precision loss, right? > > - Make the test skip if the pixel format is >8bpc and gamma isn't > > supported > > > > Yeah the test should skip if gamma isn't there. > -Daniel > > > dri-devel mailing list > > dri-devel@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel > > -- > > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch