summaryrefslogtreecommitdiff
path: root/linux-core/radeon_ms_fb.c
diff options
context:
space:
mode:
authorJerome Glisse <glisse@freedesktop.org>2008-04-07 20:49:36 +0200
committerJerome Glisse <glisse@freedesktop.org>2008-04-07 20:49:36 +0200
commitfee64980c4581f1c3cac4be834fa5fb663c2029b (patch)
tree80c7ea8171c901ca4b6ec111f9a0766823d450a9 /linux-core/radeon_ms_fb.c
parent060e725a0e8aa1f1157f97ca8e7dfa60d02d17ac (diff)
radeon_ms: another fb fix reset mode if fb changed
Diffstat (limited to 'linux-core/radeon_ms_fb.c')
-rw-r--r--linux-core/radeon_ms_fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-core/radeon_ms_fb.c b/linux-core/radeon_ms_fb.c
index 8b720f88..dbbddaf4 100644
--- a/linux-core/radeon_ms_fb.c
+++ b/linux-core/radeon_ms_fb.c
@@ -243,7 +243,8 @@ static int radeonfb_set_par(struct fb_info *info)
}
if (par->crtc->enabled) {
- if (!drm_mode_equal(&par->crtc->mode, drm_mode)) {
+ if (!drm_mode_equal(&par->crtc->mode, drm_mode) ||
+ par->crtc->fb != par->fb) {
par->crtc->fb = par->fb;
if (!drm_crtc_set_mode(par->crtc, drm_mode, 0, 0)) {
return -EINVAL;