Skip to contentSkip to conversation

drm: Fix setting of fb_changed in drm_crtc_helper_set_config()

PATCH New Roel Kluin 1 participant 1 message Jan 17, 2010

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 drm: Fix setting of fb_changed in drm_crtc_helper_set_config()

Only set fb_changed if bits_per_pixel or depth changed.

---

drivers/gpu/drm/drm_crtc_helper.c +0 -2
index 7d0f00a..89197c1 100644
@@ -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)