All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 09/10] drm/i915: check for supported depth at fb init time
Date: Fri, 24 Jun 2011 12:19:27 -0700	[thread overview]
Message-ID: <1308943168-2624-10-git-send-email-jbarnes@virtuousgeek.org> (raw)
In-Reply-To: <1308943168-2624-1-git-send-email-jbarnes@virtuousgeek.org>

This will catch bad fb configs earlier.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_display.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index db88f15..f5c2012 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -6946,6 +6946,11 @@ int intel_framebuffer_init(struct drm_device *dev,
 	switch (mode_cmd->bpp) {
 	case 8:
 	case 16:
+		/* Only pre-ILK can handle 5:5:5 */
+		if (mode_cmd->depth == 15 && !HAS_PCH_SPLIT(dev))
+			return -EINVAL;
+		break;
+
 	case 24:
 	case 32:
 		break;
-- 
1.7.4.1

  parent reply	other threads:[~2011-06-24 19:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24 19:19 Deep color support & fixes Jesse Barnes
2011-06-24 19:19 ` [PATCH 01/10] drm/i915: don't set SDVO color range on ILK+ Jesse Barnes
2011-06-24 19:19 ` [PATCH 02/10] drm/i915: don't set transcoder bpc on CougarPoint Jesse Barnes
2011-06-24 19:19 ` [PATCH 03/10] drm/i915: set bpc for DP transcoder Jesse Barnes
2011-06-24 19:19 ` [PATCH 04/10] drm/i915: split out Ironlake pipe bpp picking code Jesse Barnes
2011-06-24 19:19 ` [PATCH 05/10] drm/i915: split out plane update code Jesse Barnes
2011-06-24 19:19 ` [PATCH 06/10] drm/i915: use pipe bpp in DP link bandwidth calculations Jesse Barnes
2011-06-24 19:19 ` [PATCH 07/10] drm/i915: use pipe bpp when setting HDMI bpc Jesse Barnes
2011-06-24 19:19 ` [PATCH 08/10] drm: bpp and depth changes require full mode sets Jesse Barnes
2011-06-24 19:19 ` Jesse Barnes [this message]
2011-06-24 19:19 ` [PATCH 10/10] drm/i915: use pipe bpp in DP link bandwidth calculation Jesse Barnes

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=1308943168-2624-10-git-send-email-jbarnes@virtuousgeek.org \
    --to=jbarnes@virtuousgeek.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.