summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_crtc_helper.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-04-22 01:38:47 +0200
committerDave Airlie <airlied@redhat.com>2013-04-22 19:48:30 +1000
commitce83adf78bbbe6bdcd99f0b97212337ce6b84940 (patch)
treed03c26f7d6f9565c01282edf3244b004a83710ca /drivers/gpu/drm/drm_crtc_helper.c
parent909d9cda2edfc61b8ec82e248eee3545b592e20d (diff)
downloadlinux-3.10-ce83adf78bbbe6bdcd99f0b97212337ce6b84940.tar.gz
linux-3.10-ce83adf78bbbe6bdcd99f0b97212337ce6b84940.tar.bz2
linux-3.10-ce83adf78bbbe6bdcd99f0b97212337ce6b84940.zip
drm: Perform a full mode set when the pixel format changed
Test whether the pixel format changes in the mode set handler, and perform a full mode set instead of a mode set base if it does. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_helper.c')
-rw-r--r--drivers/gpu/drm/drm_crtc_helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index 7b2d378b257..e974f9309b7 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -648,6 +648,9 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
} else if (set->fb->bits_per_pixel !=
set->crtc->fb->bits_per_pixel) {
mode_changed = true;
+ } else if (set->fb->pixel_format !=
+ set->crtc->fb->pixel_format) {
+ mode_changed = true;
} else
fb_changed = true;
}