Skip to content

Commit

Permalink
drm/i915: Don't set plane visible during HW readout if CRTC is off
Browse files Browse the repository at this point in the history
We already ensure that pstate->visible = false when crtc->active = false
during runtime programming; make sure we follow the same logic when
reading out initial hardware state.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Smoke-tested-by: Paulo Zanoni <przanoni@gmail.com>
Link: http://patchwork.freedesktop.org/patch/59564/
  • Loading branch information
Matt Roper committed Oct 21, 2015
1 parent 86c8bbb commit 19b8d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -15175,7 +15175,7 @@ static void readout_plane_state(struct intel_crtc *crtc)
struct intel_plane_state *plane_state =
to_intel_plane_state(primary->state);

plane_state->visible =
plane_state->visible = crtc->active &&
primary_get_hw_state(to_intel_plane(primary));

if (plane_state->visible)
Expand Down

0 comments on commit 19b8d38

Please sign in to comment.