drm/amd/display: Allow cursor position when plane_res.ipp is NULL
authorEric Bernstein <eric.bernstein@amd.com>
Mon, 8 Apr 2019 17:47:10 +0000 (13:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Apr 2019 22:28:11 +0000 (17:28 -0500)
commitcc602e2b0d78254e41bb81f32e2825f00c7cc69c
treeb47016894b92ba584a70eaa1aaf574948482bee5
parent00ae0af700ccef23d8c2ec76a11bd95c46ebdfd2
drm/amd/display: Allow cursor position when plane_res.ipp is NULL

[Why]
Starting with DCN1, the input_pixel_processor (ipp) struct has been
replaced by dpp struct (part of DAL3.1 SW architecture change).
Need to update logic to handle cases where ipp is never allocated.

[How]
Only skip cursor position programming if both ipp and dpp resources
are NULL.

Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c