From: akpm@linux-foundation.org Subject: [patch 5/6] drivers/gpu/drm/drm_crtc_helper.c: fix setting of fb_changed in drm_crtc_helper_set_config() Date: Tue, 02 Feb 2010 14:40:32 -0800 Message-ID: <201002022240.o12MeWWa018895@imap1.linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: airlied@linux.ie Cc: akpm@linux-foundation.org, dri-devel@lists.sourceforge.net, roel.kluin@gmail.com, jbarnes@virtuousgeek.org List-Id: dri-devel@lists.freedesktop.org From: Roel Kluin Only set fb_changed if bits_per_pixel or depth changed. Signed-off-by: Roel Kluin Cc: David Airlie Cc: Zhao Yakui Cc: Jesse Barnes Signed-off-by: Andrew Morton --- drivers/gpu/drm/drm_crtc_helper.c | 2 -- 1 file changed, 2 deletions(-) diff -puN drivers/gpu/drm/drm_crtc_helper.c~drivers-gpu-drm-drm_crtc_helperc-fix-setting-of-fb_changed-in-drm_crtc_helper_set_config drivers/gpu/drm/drm_crtc_helper.c --- a/drivers/gpu/drm/drm_crtc_helper.c~drivers-gpu-drm-drm_crtc_helperc-fix-setting-of-fb_changed-in-drm_crtc_helper_set_config +++ a/drivers/gpu/drm/drm_crtc_helper.c @@ -840,8 +840,6 @@ int drm_crtc_helper_set_config(struct dr set->crtc->fb->bits_per_pixel) || set->fb->depth != set->crtc->fb->depth) fb_changed = true; - else - fb_changed = true; } if (set->x != set->crtc->x || set->y != set->crtc->y) _ ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com --