summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc_helper.c
diff options
context:
space:
mode:
authorDave Airlie2010-02-11 05:28:58 +0100
committerDave Airlie2010-02-11 05:28:58 +0100
commit8dff4742a6a718e71d15a9b7a8d3d2255bfbc91a (patch)
tree105e123278d778a5ef07307c03e8329378f691e6 /drivers/gpu/drm/drm_crtc_helper.c
parentdrivers/gpu/drm/drm_fb_helper.c: don't use private implementation of atoi() (diff)
downloadkernel-qcow2-linux-8dff4742a6a718e71d15a9b7a8d3d2255bfbc91a.tar.gz
kernel-qcow2-linux-8dff4742a6a718e71d15a9b7a8d3d2255bfbc91a.tar.xz
kernel-qcow2-linux-8dff4742a6a718e71d15a9b7a8d3d2255bfbc91a.zip
drm/kms: fix fb_changed = true else statement
a patch from Roel was wrong, fix this properly, really if the fb ptrs are different fb changed shuold be true. 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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index 7d0f00a935fa..f2aaf39be398 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -836,11 +836,7 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
mode_changed = true;
} else if (set->fb == NULL) {
mode_changed = true;
- } else if ((set->fb->bits_per_pixel !=
- set->crtc->fb->bits_per_pixel) ||
- set->fb->depth != set->crtc->fb->depth)
- fb_changed = true;
- else
+ } else
fb_changed = true;
}