From: Shashank Sharma <shashank.sharma@intel.com>
To: intel-gfx@lists.freedesktop.org, imre.deak@intel.com
Subject: [PATCH v5 5/6] drm/i915: set colorspace for YCBCR420 outputs
Date: Fri, 21 Jul 2017 20:55:08 +0530 [thread overview]
Message-ID: <1500650709-14447-6-git-send-email-shashank.sharma@intel.com> (raw)
In-Reply-To: <1500650709-14447-1-git-send-email-shashank.sharma@intel.com>
When output colorspace is YCBCR420, we have to load the
corresponding colorspace in AVI infoframe. This patch fills
the colorspace of AVI infoframe as per the output mode.
V2: Rebase
V3: Rebase
V4: Rebase
V5: Added r-b from Ander
V6: Checking RGB/YCBCR420 output only (Ville)
V7: Add colorspace info in driver(not drm layer) (Ville)
V8: Rebase
V9: Added r-b from Ville
V10: Added r-b from Imre
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Reviewed-by: Ville Syrjala <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
---
drivers/gpu/drm/i915/intel_hdmi.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index da9d1d3..9023904 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -472,12 +472,18 @@ static void intel_hdmi_set_avi_infoframe(struct drm_encoder *encoder,
return;
}
+ if (crtc_state->ycbcr420)
+ frame.avi.colorspace = HDMI_COLORSPACE_YUV420;
+ else
+ frame.avi.colorspace = HDMI_COLORSPACE_RGB;
+
drm_hdmi_avi_infoframe_quant_range(&frame.avi, adjusted_mode,
crtc_state->limited_color_range ?
HDMI_QUANTIZATION_RANGE_LIMITED :
HDMI_QUANTIZATION_RANGE_FULL,
intel_hdmi->rgb_quant_range_selectable);
+ /* TODO: handle pixel repetition for YCBCR420 outputs */
intel_write_infoframe(encoder, crtc_state, &frame);
}
--
2.7.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-07-21 15:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 15:25 [PATCH v5 0/6] YCBCR 4:2:0 handling in i915 layer Shashank Sharma
2017-07-21 15:25 ` [PATCH v5 1/6] drm/i915: add config function for YCBCR420 outputs Shashank Sharma
2017-07-21 15:25 ` [PATCH v5 2/6] drm/i915: prepare scaler for YCBCR420 modeset Shashank Sharma
2017-07-21 15:25 ` [PATCH v5 3/6] drm/i915: prepare pipe for YCBCR420 output Shashank Sharma
2017-07-21 19:04 ` Imre Deak
2017-07-22 4:35 ` Sharma, Shashank
2017-07-24 9:34 ` [PATCH v6 " Shashank Sharma
2017-07-24 12:07 ` Imre Deak
2017-07-24 13:49 ` [PATCH v7 " Shashank Sharma
2017-07-21 15:25 ` [PATCH v5 4/6] drm/i915: prepare csc unit " Shashank Sharma
2017-07-21 15:25 ` Shashank Sharma [this message]
2017-07-21 15:25 ` [PATCH v5 6/6] drm/i915/glk: set HDMI 2.0 identifier Shashank Sharma
2017-07-21 16:40 ` ✓ Fi.CI.BAT: success for YCBCR 4:2:0 handling in i915 layer (rev2) Patchwork
2017-07-24 9:52 ` ✓ Fi.CI.BAT: success for YCBCR 4:2:0 handling in i915 layer (rev3) Patchwork
2017-07-24 14:03 ` ✓ Fi.CI.BAT: success for YCBCR 4:2:0 handling in i915 layer (rev4) Patchwork
2017-07-24 15:02 ` Imre Deak
2017-07-24 16:20 ` Imre Deak
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=1500650709-14447-6-git-send-email-shashank.sharma@intel.com \
--to=shashank.sharma@intel.com \
--cc=imre.deak@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox