aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqiang Sun <[email protected]>2017-10-17 14:54:58 -0400
committerAlex Deucher <[email protected]>2017-12-04 16:33:20 -0500
commit4c7d45fae841a7f3e2d129185acf66f1c7ae37e5 (patch)
tree37c8de351568f4def83fc61f69eb2ce7cc573351
parent3dc780ec3473200ef870eae9b19169445d76be4c (diff)
drm/amd/display: Check cursor address before program.
Program cursor attributes during set mode is only needed in case of pipe slipt, bottom pipe should be programmed same as top pipe. Need to program if address is 0. Signed-off-by: Yongqiang Sun <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
index ac731c46419d..b477a6508db4 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
@@ -2436,7 +2436,8 @@ static void program_all_pipe_in_tree(
/* TODO: this is a hack w/a for switching from mpo to pipe split */
dc_stream_set_cursor_position(pipe_ctx->stream, &position);
- dc_stream_set_cursor_attributes(pipe_ctx->stream,
+ if (pipe_ctx->stream->cursor_attributes.address.quad_part != 0)
+ dc_stream_set_cursor_attributes(pipe_ctx->stream,
&pipe_ctx->stream->cursor_attributes);
if (cur_pipe_ctx->plane_state != pipe_ctx->plane_state) {