提交 a4611e44 编写于 作者: M Matt Roper 提交者: Daniel Vetter

drm/i915: Don't set plane visible during HW readout if CRTC is off

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: NMatt Roper <matthew.d.roper@intel.com>
Reviewed-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 a28170f3
...@@ -15166,7 +15166,7 @@ static void readout_plane_state(struct intel_crtc *crtc) ...@@ -15166,7 +15166,7 @@ static void readout_plane_state(struct intel_crtc *crtc)
struct intel_plane_state *plane_state = struct intel_plane_state *plane_state =
to_intel_plane_state(primary->state); to_intel_plane_state(primary->state);
plane_state->visible = plane_state->visible = crtc->active &&
primary_get_hw_state(to_intel_plane(primary)); primary_get_hw_state(to_intel_plane(primary));
if (plane_state->visible) if (plane_state->visible)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册