[Intel-gfx] [PATCH] drm/i915/bxt: Fix wm calculation for pixel format change

Nabendu Maiti nabendu.bikash.maiti at intel.com
Tue Dec 22 21:22:36 PST 2015


Recalculate watermark when there is a change in pixel format.

Signed-off-by: Nabendu Maiti <nabendu.bikash.maiti at intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 2d0b006..4bd5080 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -11819,6 +11819,7 @@ static bool intel_wm_need_update(struct drm_plane *plane,
 		return false;
 
 	if (cur->base.fb->modifier[0] != new->base.fb->modifier[0] ||
+	    cur->base.fb->pixel_format != new->base.fb->pixel_format ||
 	    cur->base.rotation != new->base.rotation ||
 	    drm_rect_width(&new->src) != drm_rect_width(&cur->src) ||
 	    drm_rect_height(&new->src) != drm_rect_height(&cur->src) ||
-- 
1.9.1



More information about the Intel-gfx mailing list