linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm: Fix setting of fb_changed in drm_crtc_helper_set_config()
@ 2010-01-17 14:40 Roel Kluin
  0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2010-01-17 14:40 UTC (permalink / raw)
  To: David Airlie, dri-devel, Andrew Morton, LKML

Only set fb_changed if bits_per_pixel or depth changed.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index 7d0f00a..89197c1 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -840,8 +840,6 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
 			 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)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-17 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-17 14:40 [PATCH] drm: Fix setting of fb_changed in drm_crtc_helper_set_config() Roel Kluin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).