From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Aditya Swarup <aditya.swarup@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/icl: Fix setting 10 bit deep color mode
Date: Tue, 30 Apr 2019 18:05:18 +0300 [thread overview]
Message-ID: <20190430150518.GF24299@intel.com> (raw)
In-Reply-To: <20190430000028.4690-1-aditya.swarup@intel.com>
On Mon, Apr 29, 2019 at 05:00:28PM -0700, Aditya Swarup wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> There is a bug in hdmi_deep_color_possible() - we compare pipe_bpp
> <= 8*3 which returns true every time for hdmi_deep_color_possible 12 bit
> deep color mode test in intel_hdmi_compute_config().(Even when the
> requested color mode is 10 bit through max bpc property)
>
> Comparing pipe_bpp with bpc * 3 takes care of this condition where
> requested max bpc is 10 bit, so hdmi_deep_color_possible with 12 bit
> returns false when requested max bpc is 10.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
How did my sob appear on this? Pretty sure I didn't actually put it
here.
> Signed-off-by: Aditya Swarup <aditya.swarup@intel.com>
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: Manasi Navare <manasi.d.navare@intel.com>
> Cc: Clinton Taylor <Clinton.A.Taylor@intel.com>
> ---
> drivers/gpu/drm/i915/intel_hdmi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index 991eb362ef4f..74f2dcb8b1ad 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -2159,7 +2159,7 @@ static bool hdmi_deep_color_possible(const struct intel_crtc_state *crtc_state,
> if (bpc == 10 && INTEL_GEN(dev_priv) < 11)
> return false;
>
> - if (crtc_state->pipe_bpp <= 8*3)
> + if (crtc_state->pipe_bpp < bpc * 3)
> return false;
>
> if (!crtc_state->has_hdmi_sink)
> --
> 2.17.1
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-04-30 15:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-30 0:00 [PATCH] drm/i915/icl: Fix setting 10 bit deep color mode Aditya Swarup
2019-04-30 8:43 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-04-30 14:36 ` ✗ Fi.CI.IGT: failure " Patchwork
2019-04-30 15:05 ` Ville Syrjälä [this message]
2019-04-30 21:12 ` [PATCH] " Aditya Swarup
2019-05-07 10:12 ` Ville Syrjälä
2019-05-06 18:43 ` ✓ Fi.CI.BAT: success for drm/i915/icl: Fix setting 10 bit deep color mode (rev2) Patchwork
2019-05-06 20:24 ` ✓ Fi.CI.IGT: " Patchwork
2019-05-07 18:18 ` [PATCH v2] drm/i915/icl: Fix setting 10 bit deep color mode Aditya Swarup
2019-05-07 18:53 ` Ville Syrjälä
2019-05-07 19:12 ` ✓ Fi.CI.BAT: success for drm/i915/icl: Fix setting 10 bit deep color mode (rev3) Patchwork
2019-05-08 4:53 ` ✓ Fi.CI.IGT: " 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=20190430150518.GF24299@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=aditya.swarup@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@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;
as well as URLs for NNTP newsgroup(s).