Skip to content

Commit a712f8e

Browse files
Sonika Jindaldanvet
authored andcommitted
drm/i915/skl: Correctly updating sprite wm parameter
The pipe wm parameters is not correctly updated with sprite parameters because it copies them for each plane from plane_list to the sprite offset in pipe wm parameters. Since plane_list also contains primary and cursor planes, we end up updating wrong params for sprites. Signed-off-by: Sonika Jindal <sonika.jindal@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 45f8f69 commit a712f8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/intel_pm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2668,7 +2668,8 @@ static void skl_compute_wm_pipe_parameters(struct drm_crtc *crtc,
26682668
list_for_each_entry(plane, &dev->mode_config.plane_list, head) {
26692669
struct intel_plane *intel_plane = to_intel_plane(plane);
26702670

2671-
if (intel_plane->pipe == pipe)
2671+
if (intel_plane->pipe == pipe &&
2672+
plane->type == DRM_PLANE_TYPE_OVERLAY)
26722673
p->plane[i++] = intel_plane->wm;
26732674
}
26742675
}

0 commit comments

Comments
 (0)