From: Roel Kluin <roel.kl...@gmail.com>

Only set fb_changed if bits_per_pixel or depth changed.

Signed-off-by: Roel Kluin <roel.kl...@gmail.com>
Cc: David Airlie <airl...@linux.ie>
Cc: Zhao Yakui <yakui.z...@intel.com>
Cc: Jesse Barnes <jbar...@virtuousgeek.org>
Signed-off-by: Andrew Morton <a...@linux-foundation.org>
---

 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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to