summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-02-23 15:33:40 +0000
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-23 08:06:31 -0800
commit5ca0c34ae28344b6b4ca3036bc82f89c8db16a59 (patch)
tree1c6ad52ea2aec0cd4ec960713af433fc91b4e7e1 /drivers
parent3ac0eb6d62fde0a60a6c5c61e562af1db8fbf712 (diff)
downloadop-kernel-dev-5ca0c34ae28344b6b4ca3036bc82f89c8db16a59.zip
op-kernel-dev-5ca0c34ae28344b6b4ca3036bc82f89c8db16a59.tar.gz
drm/i915: fix mode set on load pipe. (v2)
Booted my i965 machine and it started printing the unsupported pixel format of 0 message (once I added content to it). Oh looksie here, we pass 0. fix. v2: compile it. Buzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45966 Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index f425b23..f3afec2 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -6561,7 +6561,7 @@ intel_framebuffer_create_for_mode(struct drm_device *dev,
mode_cmd.height = mode->vdisplay;
mode_cmd.pitches[0] = intel_framebuffer_pitch_for_width(mode_cmd.width,
bpp);
- mode_cmd.pixel_format = 0;
+ mode_cmd.pixel_format = drm_mode_legacy_fb_format(bpp, depth);
return intel_framebuffer_create(dev, &mode_cmd, obj);
}
OpenPOWER on IntegriCloud