Skip to content

Commit cd5693c

Browse files
committed
drm/i915: Use intel_plane_set_invisible() in intel_plane_disable_noatomic()
Reuse intel_plane_set_invisible() in intel_plane_disable_noatomic() instead of hand rolling the same stuff. Reviewed-by: Vinod Govindapillai <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 0851227 commit cd5693c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/gpu/drm/i915/display/intel_display.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -674,13 +674,9 @@ void intel_plane_disable_noatomic(struct intel_crtc *crtc,
674674
plane->base.base.id, plane->base.name,
675675
crtc->base.base.id, crtc->base.name);
676676

677+
intel_plane_set_invisible(crtc_state, plane_state);
677678
intel_set_plane_visible(crtc_state, plane_state, false);
678679
intel_plane_fixup_bitmasks(crtc_state);
679-
crtc_state->data_rate[plane->id] = 0;
680-
crtc_state->data_rate_y[plane->id] = 0;
681-
crtc_state->rel_data_rate[plane->id] = 0;
682-
crtc_state->rel_data_rate_y[plane->id] = 0;
683-
crtc_state->min_cdclk[plane->id] = 0;
684680

685681
if ((crtc_state->active_planes & ~BIT(PLANE_CURSOR)) == 0 &&
686682
hsw_ips_disable(crtc_state)) {

0 commit comments

Comments
 (0)