From: Daniel Vetter <daniel@ffwll.ch> To: Simon Ser <contact@emersion.fr> Cc: "Ville Syrjälä" <ville.syrjala@linux.intel.com>, "Haneen Mohammed" <hamohammed.sa@gmail.com>, "Rodrigo Siqueira" <rodrigosiqueiramelo@gmail.com>, "Emil Velikov" <emil.l.velikov@gmail.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>, "Melissa Wen" <melissa.srw@gmail.com>, "Sidong Yang" <realwakka@gmail.com> Subject: Re: [PATCH] drm/vkms: add support for gamma_set interface Date: Tue, 1 Sep 2020 15:26:56 +0200 [thread overview] Message-ID: <20200901132656.GD2352366@phenom.ffwll.local> (raw) In-Reply-To: <C7EgdPUBX9nRTKx9kkGIZijd0yGMOLEtXOwa2jvk-rKtprmNZKSDP-Jos7mYU88DOQYiXJBnz0_D2FAQ1x7jCwLcR-cmZtzCc5cLsJqyDCk=@emersion.fr> On Tue, Sep 01, 2020 at 08:57:37AM +0000, Simon Ser wrote: > On Monday, August 31, 2020 3:48 PM, Ville Syrjälä <ville.syrjala@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 linear? > > > > If so, I think the IGT test should be fixed to ignore "I don't support > > > > gamma" errors. > > > > > > It seems like that IGT test pixel-format is to make gamma lut like below. > > > for (i = 0; i < lut_size; i++) > > > lut[i] = (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 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. > - 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
WARNING: multiple messages have this Message-ID (diff)
From: Daniel Vetter <daniel@ffwll.ch> To: Simon Ser <contact@emersion.fr> Cc: Haneen Mohammed <hamohammed.sa@gmail.com>, Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>, Emil Velikov <emil.l.velikov@gmail.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>, Melissa Wen <melissa.srw@gmail.com>, Sidong Yang <realwakka@gmail.com> Subject: Re: [PATCH] drm/vkms: add support for gamma_set interface Date: Tue, 1 Sep 2020 15:26:56 +0200 [thread overview] Message-ID: <20200901132656.GD2352366@phenom.ffwll.local> (raw) In-Reply-To: <C7EgdPUBX9nRTKx9kkGIZijd0yGMOLEtXOwa2jvk-rKtprmNZKSDP-Jos7mYU88DOQYiXJBnz0_D2FAQ1x7jCwLcR-cmZtzCc5cLsJqyDCk=@emersion.fr> On Tue, Sep 01, 2020 at 08:57:37AM +0000, Simon Ser wrote: > On Monday, August 31, 2020 3:48 PM, Ville Syrjälä <ville.syrjala@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 linear? > > > > If so, I think the IGT test should be fixed to ignore "I don't support > > > > gamma" errors. > > > > > > It seems like that IGT test pixel-format is to make gamma lut like below. > > > for (i = 0; i < lut_size; i++) > > > lut[i] = (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 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. > - 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 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-09-01 13:28 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-08-29 14:06 [PATCH] drm/vkms: add support for gamma_set interface Sidong Yang 2020-08-29 14:06 ` Sidong Yang 2020-08-31 11:39 ` Simon Ser 2020-08-31 11:39 ` Simon Ser 2020-08-31 13:38 ` Sidong Yang 2020-08-31 13:38 ` Sidong Yang 2020-08-31 13:48 ` Ville Syrjälä 2020-08-31 13:48 ` Ville Syrjälä 2020-09-01 8:57 ` Simon Ser 2020-09-01 8:57 ` Simon Ser 2020-09-01 13:26 ` Daniel Vetter [this message] 2020-09-01 13:26 ` Daniel Vetter 2020-09-02 9:09 ` Simon Ser 2020-09-02 9:09 ` Simon Ser 2020-09-02 11:51 ` Ville Syrjälä 2020-09-02 11:51 ` Ville Syrjälä
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200901132656.GD2352366@phenom.ffwll.local \ --to=daniel@ffwll.ch \ --cc=contact@emersion.fr \ --cc=dri-devel@lists.freedesktop.org \ --cc=emil.l.velikov@gmail.com \ --cc=hamohammed.sa@gmail.com \ --cc=linux-kernel@vger.kernel.org \ --cc=melissa.srw@gmail.com \ --cc=realwakka@gmail.com \ --cc=rodrigosiqueiramelo@gmail.com \ --cc=ville.syrjala@linux.intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.