OSDN Git Service

drm/amd/display: check for ipp before calling cursor operations
authorShirish S <shirish.s@amd.com>
Wed, 21 Feb 2018 10:40:33 +0000 (16:10 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Feb 2018 20:14:41 +0000 (15:14 -0500)
commitd6b6669762898dfc99e9273b8d8603bc47014aa9
treecac84c37b7bd97569faa084bb1045fe560bf6b78
parent219b3b22df9d828367a4eeceed7600890e2ff4ef
drm/amd/display: check for ipp before calling cursor operations

Currently all cursor related functions are made to all
pipes that are attached to a particular stream.
This is not applicable to pipes that do not have cursor plane
initialised like underlay.
Hence this patch allows cursor related operations on a pipe
only if ipp in available on that particular pipe.

The check is added to set_cursor_position & set_cursor_attribute.

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/core/dc_stream.c