From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Uma Shankar <uma.shankar@intel.com>
Cc: intel-gfx@lists.freedesktop.org, =ville.syrjala@linux.intel.com
Subject: Re: [Intel-gfx] [PATCH 1/3] drm/i915/xelpd: Enable Pipe color support for D13 platform
Date: Wed, 24 Nov 2021 16:58:48 +0200 [thread overview]
Message-ID: <YZ5TKAAVV30iYX0o@intel.com> (raw)
In-Reply-To: <20211123193649.3153258-2-uma.shankar@intel.com>
On Wed, Nov 24, 2021 at 01:06:47AM +0530, Uma Shankar wrote:
> Enable pipe color support for Display 13 platforms. Currently
> limit to just 10bit gamma and later extend it for logarithmic
> gamma, once the new UAPI is agreed by community and implemented
> by a userspace consumer.
>
> Signed-off-by: Uma Shankar <uma.shankar@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_color.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm/i915/display/intel_color.c
> index c870a0e50cb1..e529dbeee525 100644
> --- a/drivers/gpu/drm/i915/display/intel_color.c
> +++ b/drivers/gpu/drm/i915/display/intel_color.c
> @@ -1574,6 +1574,8 @@ static int glk_color_check(struct intel_crtc_state *crtc_state)
>
> static u32 icl_gamma_mode(const struct intel_crtc_state *crtc_state)
> {
> + struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
> + struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
s/dev_priv/i915/ for new stuff please.
> u32 gamma_mode = 0;
>
> if (crtc_state->hw.degamma_lut)
> @@ -1586,6 +1588,13 @@ static u32 icl_gamma_mode(const struct intel_crtc_state *crtc_state)
> if (!crtc_state->hw.gamma_lut ||
> crtc_state_is_legacy_gamma(crtc_state))
> gamma_mode |= GAMMA_MODE_MODE_8BIT;
> + /*
> + * Enable 10bit gamma for D13
> + * ToDo: Extend to Logarithmic Gamma once the new UAPI
> + * is acccepted and implemented by a userspace consumer
> + */
> + else if (DISPLAY_VER(dev_priv) >= 13)
> + gamma_mode |= GAMMA_MODE_MODE_10BIT;
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> else
> gamma_mode |= GAMMA_MODE_MODE_12BIT_MULTI_SEGMENTED;
>
> --
> 2.25.1
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2021-11-24 14:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-23 19:36 [Intel-gfx] [PATCH 0/3] Enable pipe color support on D13 platform Uma Shankar
2021-11-23 19:36 ` [Intel-gfx] [PATCH 1/3] drm/i915/xelpd: Enable Pipe color support for " Uma Shankar
2021-11-24 14:58 ` Ville Syrjälä [this message]
2021-11-25 19:48 ` Shankar, Uma
2021-11-23 19:36 ` [Intel-gfx] [PATCH 2/3] drm/i915/xelpd: Enable Pipe Degamma Uma Shankar
2021-11-24 14:53 ` Ville Syrjälä
2021-11-25 19:49 ` Shankar, Uma
2021-11-23 19:36 ` [Intel-gfx] [PATCH 3/3] drm/i915/xelpd: Add Pipe Color Lut caps to platform config Uma Shankar
2021-11-24 14:57 ` Ville Syrjälä
2021-11-25 20:12 ` Shankar, Uma
2021-11-23 21:28 ` [Intel-gfx] ✓ Fi.CI.BAT: success for Enable pipe color support on D13 platform Patchwork
2021-11-24 0:13 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
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=YZ5TKAAVV30iYX0o@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc==ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=uma.shankar@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox