drm/amd/display: Update OPP counter from new interface
authorHong-lu Cheng <hong-lu.cheng@amd.com>
Thu, 14 Sep 2023 15:32:56 +0000 (11:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 21:00:22 +0000 (17:00 -0400)
[Description]
Change to new interface for notifying OS of cursor support changes

Reviewed-by: Gang Chu <gang.chu@amd.com>
Reviewed-by: Jaina Han <jaina.han@amd.com>
Reviewed-by: Jun Lei <jun.lei@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Hong-lu Cheng <hong-lu.cheng@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.c

index 76db20b..c5a74b2 100644 (file)
@@ -3507,7 +3507,7 @@ static void wait_for_outstanding_hw_updates(struct dc *dc, const struct dc_state
  */
        int pipe_idx;
        int opp_inst;
-       int opp_count = dc->res_pool->pipe_count;
+       int opp_count = dc->res_pool->res_cap->num_opp;
        struct hubp *hubp;
        int mpcc_inst;
        const struct pipe_ctx *pipe_ctx;