diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-06-24 12:19:27 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-07-07 13:20:54 -0700 |
commit | b5626747eca6d02124544d1d69049220f1c01fb1 (patch) | |
tree | b13eca67d95818737093c1fe9feb9db6adb32a8e /drivers/gpu | |
parent | 46e484566fe4dc8a34e0ccc154e2f8b939b9ec96 (diff) | |
download | linux-b5626747eca6d02124544d1d69049220f1c01fb1.tar.bz2 |
drm/i915: check for supported depth at fb init time
This will catch bad fb configs earlier.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | 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 c166a88e426b..af3e5813366c 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -7061,6 +7061,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; |