From: Hong-lu Cheng <hong-lu.ch...@amd.com>

[Description]
Change to new interface for notifying OS of cursor support changes

Reviewed-by: Gang Chu <gang....@amd.com>
Reviewed-by: Jaina Han <jaina....@amd.com>
Reviewed-by: Jun Lei <jun....@amd.com>
Acked-by: Wayne Lin <wayne....@amd.com>
Signed-off-by: Hong-lu Cheng <hong-lu.ch...@amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c 
b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 293489c41086..07d960e7bac7 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -3495,7 +3495,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;
-- 
2.37.3

Reply via email to