mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-22 10:31:08 +00:00
drm/msm/dpu: Fix for non-visible planes
[ Upstream commitcb77085b1f
] Fixes `kms_cursor_crc --run-subtest cursor-offscreen`.. when the cursor moves offscreen the plane becomes non-visible, so we need to skip over it in crtc atomic test and mixer setup. Signed-off-by: Rob Clark <robdclark@chromium.org> Fixes:25fdd5933e
("drm/msm: Add SDM845 DPU support") Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/492819/ Link: https://lore.kernel.org/r/20220707212003.1710163-1-robdclark@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
340bfec294
commit
1a63d33006
1 changed files with 6 additions and 0 deletions
|
@ -230,6 +230,9 @@ static void _dpu_crtc_blend_setup_mixer(struct drm_crtc *crtc,
|
|||
if (!state)
|
||||
continue;
|
||||
|
||||
if (!state->visible)
|
||||
continue;
|
||||
|
||||
pstate = to_dpu_plane_state(state);
|
||||
fb = state->fb;
|
||||
|
||||
|
@ -976,6 +979,9 @@ static int dpu_crtc_atomic_check(struct drm_crtc *crtc,
|
|||
if (cnt >= DPU_STAGE_MAX * 4)
|
||||
continue;
|
||||
|
||||
if (!pstate->visible)
|
||||
continue;
|
||||
|
||||
pstates[cnt].dpu_pstate = dpu_pstate;
|
||||
pstates[cnt].drm_pstate = pstate;
|
||||
pstates[cnt].stage = pstate->normalized_zpos;
|
||||
|
|
Loading…
Reference in a new issue