From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>
Cc: "intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH 1/4] drm: Fix color LUT rounding
Date: Mon, 20 Nov 2023 16:27:04 +0200 [thread overview]
Message-ID: <ZVtsuDMWBvnZ-GMe@intel.com> (raw)
In-Reply-To: <SJ1PR11MB61299BB0464C687EBA4C41B1B9B4A@SJ1PR11MB6129.namprd11.prod.outlook.com>
On Mon, Nov 20, 2023 at 01:17:05PM +0000, Borah, Chaitanya Kumar wrote:
>
>
> > -----Original Message-----
> > From: Borah, Chaitanya Kumar
> > Sent: Monday, November 20, 2023 6:33 PM
> > To: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > Cc: intel-gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org; Jani
> > Nikula <jani.nikula@linux.intel.com>
> > Subject: RE: [Intel-gfx] [PATCH 1/4] drm: Fix color LUT rounding
> >
> > Hello Ville,
> >
> > > -----Original Message-----
> > > From: dri-devel <dri-devel-bounces@lists.freedesktop.org> On Behalf Of
> > > Ville Syrjälä
> > > Sent: Tuesday, October 31, 2023 9:37 PM
> > > To: Jani Nikula <jani.nikula@linux.intel.com>
> > > Cc: intel-gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org
> > > Subject: Re: [Intel-gfx] [PATCH 1/4] drm: Fix color LUT rounding
> > >
> > > On Tue, Oct 31, 2023 at 11:15:35AM +0200, Jani Nikula wrote:
> > > > On Fri, 13 Oct 2023, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> > > > > entrirely. But perhaps a better idea would be to follow the OpenGL
> > > > > int<->float conversion rules, in which case we get the following
> > > > > results:
> > > >
> > > > Do you have a pointer to the rules handy, I couldn't find it. :(
> > >
> > > Eg. '2.3.5 Fixed-Point Data Conversions' in GL 4.6 spec. The section
> > > number probably changes depending on which version of the spec you look
> > at.
> > >
> >
> > This section particularly talks about conversion of normalized fixed point to
> > floating point numbers and vice versa.
> > Pardon my limited knowledge on the topic but aren't we just doing a scaling
> > factor conversion(Q0.16 -> Q0.8) in these patches?
> >
> > I could not draw a direct relation between the formulas in the section[1] and
> > what we are doing here.(but it could be just me!)
>
> Scratch that! As I understand, in effect we are doing a Q0.16 Fixed Point -> Floating point -> Q0.8 Fixed Point conversion.
Yep, that's it.
> Correct me if I am wrong! Otherwise
>
> LGTM.
>
> Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
>
>
> >
> > Regards
> >
> > Chaitanya
> >
> > [1] https://registry.khronos.org/OpenGL/specs/gl/glspec46.core.pdf '2.3.5
> > Fixed-Point Data Conversions'
> >
> > > >
> > > > Might also add the reference to the commit message and/or comment.
> > > >
> > > > BR,
> > > > Jani.
> > > >
> > > > --
> > > > Jani Nikula, Intel
> > >
> > > --
> > > Ville Syrjälä
> > > Intel
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2023-11-20 14:27 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-13 13:13 [Intel-gfx] [PATCH 0/4] drm/i915: Fix LUT rounding Ville Syrjala
2023-10-13 13:13 ` Ville Syrjala
2023-10-13 13:13 ` [Intel-gfx] [PATCH 1/4] drm: Fix color " Ville Syrjala
2023-10-13 13:13 ` Ville Syrjala
2023-10-31 9:15 ` [Intel-gfx] " Jani Nikula
2023-10-31 16:06 ` Ville Syrjälä
2023-11-20 13:03 ` Borah, Chaitanya Kumar
2023-11-20 13:03 ` Borah, Chaitanya Kumar
2023-11-20 13:17 ` Borah, Chaitanya Kumar
2023-11-20 13:17 ` Borah, Chaitanya Kumar
2023-11-20 14:27 ` Ville Syrjälä [this message]
2023-10-13 13:14 ` [Intel-gfx] [PATCH 2/4] drm/i915: Adjust LUT rounding rules Ville Syrjala
2023-10-13 13:14 ` Ville Syrjala
2023-11-20 6:08 ` [Intel-gfx] " Borah, Chaitanya Kumar
2023-11-20 6:08 ` Borah, Chaitanya Kumar
2023-11-20 14:26 ` [Intel-gfx] " Ville Syrjälä
2023-11-20 14:26 ` Ville Syrjälä
2023-11-21 6:15 ` [Intel-gfx] " Borah, Chaitanya Kumar
2023-11-21 6:15 ` Borah, Chaitanya Kumar
2023-10-13 13:14 ` [Intel-gfx] [PATCH 3/4] drm/i915: s/clamp()/min()/ in i965_lut_11p6_max_pack() Ville Syrjala
2023-10-13 13:14 ` Ville Syrjala
2023-11-03 4:39 ` [Intel-gfx] " Borah, Chaitanya Kumar
2023-11-03 4:39 ` Borah, Chaitanya Kumar
2023-10-13 13:14 ` [Intel-gfx] [PATCH 4/4] drm/i915: Fix glk+ degamma LUT conversions Ville Syrjala
2023-10-13 13:14 ` Ville Syrjala
2023-11-20 6:13 ` [Intel-gfx] " Borah, Chaitanya Kumar
2023-11-20 6:13 ` Borah, Chaitanya Kumar
2023-10-13 20:27 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Fix LUT rounding Patchwork
2023-10-13 20:27 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-10-13 20:41 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-10-15 1:55 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2023-11-13 17:37 ` [Intel-gfx] [PATCH 0/4] " Jani Nikula
2023-11-20 14:30 ` Ville Syrjälä
2023-11-20 14:30 ` Ville Syrjälä
2023-11-21 10:51 ` [Intel-gfx] " Maxime Ripard
2023-11-21 10:51 ` Maxime Ripard
2023-11-23 17:35 ` [Intel-gfx] " Ville Syrjälä
2023-11-23 17:35 ` 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=ZVtsuDMWBvnZ-GMe@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=chaitanya.kumar.borah@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
/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: link
Be 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.