drm/amd/display: Adjust cursor position
authorjsg <jsg@openbsd.org>
Fri, 30 Aug 2024 04:05:36 +0000 (04:05 +0000)
committerjsg <jsg@openbsd.org>
Fri, 30 Aug 2024 04:05:36 +0000 (04:05 +0000)
From Rodrigo Siqueira
d15fc910b618cc8c574e66adb29be7da9cb9c6e3 in linux-6.6.y/6.6.48
56fb276d0244d430496f249335a44ae114dd5f54 in mainline linux

sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index e3f4d49..c9f13c3 100644 (file)
@@ -3614,7 +3614,7 @@ void dcn10_set_cursor_position(struct pipe_ctx *pipe_ctx)
                                                (int)hubp->curs_attr.width || pos_cpy.x
                                                <= (int)hubp->curs_attr.width +
                                                pipe_ctx->plane_state->src_rect.x) {
-                                               pos_cpy.x = 2 * viewport_width - temp_x;
+                                               pos_cpy.x = temp_x + viewport_width;
                                        }
                                }
                        } else {