diff options
author | Wenjing Liu <wenjing.liu@amd.com> | 2023-09-11 17:28:26 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-09-26 17:00:22 -0400 |
commit | 173db0c8b7664892fee343e5a605197962fc3ca8 (patch) | |
tree | 59aa42bd1bed9638065d484098d5c142bad8a167 /drivers/gpu/drm/amd/display/dc/inc/resource.h | |
parent | cd1baa1f6aa307e5829b3e6c7512ec61d2b8bfb3 (diff) |
drm/amd/display: add get primary dpp pipe resource interface
[why]
Need to have a helper function to find the primary dp pipe of the plane
associated with a dpp pipe
Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/resource.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/resource.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/resource.h b/drivers/gpu/drm/amd/display/dc/inc/resource.h index 6777b07d0727..170d6ab81aef 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/resource.h +++ b/drivers/gpu/drm/amd/display/dc/inc/resource.h @@ -410,6 +410,12 @@ struct pipe_ctx *resource_get_otg_master(const struct pipe_ctx *pipe_ctx); struct pipe_ctx *resource_get_opp_head(const struct pipe_ctx *pipe_ctx); /* + * Get the DPP pipe allocated for MPC slice 0 and ODM slice 0 of the plane + * associated with dpp_pipe. + */ +struct pipe_ctx *resource_get_primary_dpp_pipe(const struct pipe_ctx *dpp_pipe); + +/* * Get the MPC slice index counting from 0 from left most slice * For example, if a DPP pipe is used as a secondary pipe in MPCC combine, MPC * split index is greater than 0. |