drm/amd/display: Guard cursor idle reallow by DC debug option
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 21 Feb 2024 22:14:08 +0000 (17:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:37:37 +0000 (13:37 -0400)
commit27f03bc680ef7e0f18b4cacba96f29674d93d817
treec4be841e04dded814897e92b0835195df5ebe2fb
parentf57269f85b284f3a8154e208d7b1eb2abe652eb2
drm/amd/display: Guard cursor idle reallow by DC debug option

[WHY]
To control whether idle optimizations reallowed after the first cursor
update.

[HOW]
Add checks to the conditions.

Reviewed-by: Duncan Ma <duncan.ma@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c