Commit ba448f9e authored by Muaaz Nisar's avatar Muaaz Nisar Committed by Alex Deucher
Browse files

drm/amd/display: mouse event trigger to boost RR when idle



[WHY+HOW]
Add trigger event to boost refresh rate on mouse movement.

Reviewed-by: default avatarJun Lei <jun.lei@amd.com>
Signed-off-by: default avatarMuaaz Nisar <muanisar@amd.com>
Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: default avatarDan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5b8cfb0c
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -515,6 +515,19 @@ bool dc_stream_program_cursor_position(
			}
		}

		/* apply manual trigger */
		int i;

		for (i = 0; i < dc->res_pool->pipe_count; i++) {
			struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i];

			/* trigger event on first pipe with current stream */
			if (stream == pipe_ctx->stream) {
				pipe_ctx->stream_res.tg->funcs->program_manual_trigger(pipe_ctx->stream_res.tg);
				break;
			}
		}

		return true;
	}