Skip to contentSkip to conversation

drivers/gpu/drm/drm_crtc_helper.c: fix setting of fb_changed in drm_crtc_helper_set_config()

PATCH New [email protected] 1 participant 1 message Feb 2, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/6 drivers/gpu/drm/drm_crtc_helper.c: fix setting of fb_changed in drm_crtc_helper_set_config()

From: Roel Kluin <[email protected]>

Only set fb_changed if bits_per_pixel or depth changed.

Cc David Airlie <[email protected]>
Cc Zhao Yakui <[email protected]>
Cc Jesse Barnes <[email protected]>

---

 drivers/gpu/drm/drm_crtc_helper.c |    2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/drm_crtc_helper.c renamed from drivers/gpu/drm/drm_crtc_helper.c~drivers-gpu-drm-drm_crtc_helperc-fix-setting-of-fb_changed-in-drm_crtc_helper_set_config +0 -2
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
@@ -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
--