From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/i915/bios: Define the "luminance and gamma" sub-struct of block 46
Date: Thu, 06 Jun 2024 13:56:20 +0300 [thread overview]
Message-ID: <875xumbaqz.fsf@intel.com> (raw)
In-Reply-To: <20240605134756.17099-2-ville.syrjala@linux.intel.com>
On Wed, 05 Jun 2024, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Since BDB version 211 block 46 has included more luminance and
> gamma related information. Define it fully. The data is semi-based
> on DisplayID v2.0 apparently.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_vbt_defs.h | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> index da8694771f69..1af8407e2081 100644
> --- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> +++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> @@ -1395,8 +1395,20 @@ struct chromaticity {
> u8 white_y_hi;
> } __packed;
>
> +struct luminance_and_gamma {
> + u8 luminance_enable:1; /* 211+ */
> + u8 gamma_enable:1; /* 211+ */
> + u8 rsvd:6;
> +
> + u16 min_luminance; /* 211+ */
> + u16 max_luminance; /* 211+ */
> + u16 one_percent_max_luminance; /* 211+ */
> + u8 gamma; /* 211+ */
> +} __packed;
> +
> struct bdb_chromaticity {
> struct chromaticity chromaticity[16];
> + struct luminance_and_gamma luminance_and_gamma[16]; /* 211+ */
> } __packed;
>
> /*
--
Jani Nikula, Intel
next prev parent reply other threads:[~2024-06-06 10:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-05 13:47 [PATCH 1/2] drm/i915/bios: Define block 46 chromaticity coordinates properly Ville Syrjala
2024-06-05 13:47 ` [PATCH 2/2] drm/i915/bios: Define the "luminance and gamma" sub-struct of block 46 Ville Syrjala
2024-06-06 10:56 ` Jani Nikula [this message]
2024-06-05 15:13 ` ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915/bios: Define block 46 chromaticity coordinates properly Patchwork
2024-06-06 12:38 ` Ville Syrjälä
2024-06-06 10:55 ` [PATCH 1/2] " Jani Nikula
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=875xumbaqz.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--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: 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.