From: Roel Kluin <[email protected]>

Only set fb_changed if bits_per_pixel or depth changed.

Signed-off-by: Roel Kluin <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Zhao Yakui <[email protected]>
Cc: Jesse Barnes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---

 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
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to