From: Nicholas Kazlauskas <[email protected]>

[Why]
It was placed after the early return and the notification is never sent.

[How]
Place it after .set_drr and before the return.

Reviewed-by: Alvin Lee <[email protected]>
Signed-off-by: Nicholas Kazlauskas <[email protected]>
Signed-off-by: Wayne Lin <[email protected]>
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c 
b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 4c964cf28f68..c4ef63011f47 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -493,13 +493,14 @@ bool dc_stream_adjust_vmin_vmax(struct dc *dc,
                                        1,
                                        *adjust);
                        stream->adjust.timing_adjust_pending = false;
+
+                       if (dc->hwss.notify_cursor_offload_drr_update)
+                               dc->hwss.notify_cursor_offload_drr_update(dc, 
dc->current_state, stream);
+
                        return true;
                }
        }
 
-       if (dc->hwss.notify_cursor_offload_drr_update)
-               dc->hwss.notify_cursor_offload_drr_update(dc, 
dc->current_state, stream);
-
        return false;
 }
 
-- 
2.43.0

Reply via email to