From: jsg Date: Fri, 30 Aug 2024 04:05:36 +0000 (+0000) Subject: drm/amd/display: Adjust cursor position X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=114deaad94e7b8015ea20db4e0c42096e83326ca;p=openbsd drm/amd/display: Adjust cursor position From Rodrigo Siqueira d15fc910b618cc8c574e66adb29be7da9cb9c6e3 in linux-6.6.y/6.6.48 56fb276d0244d430496f249335a44ae114dd5f54 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c index e3f4d497d32..c9f13c37684 100644 --- a/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +++ b/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c @@ -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 {