drm/vmwgfx: Trigger a modeset when the screen moves
authorIan Forbes <ian.forbes@broadcom.com>
Mon, 24 Jun 2024 20:59:51 +0000 (15:59 -0500)
committerZack Rusin <zack.rusin@broadcom.com>
Fri, 26 Jul 2024 02:21:00 +0000 (22:21 -0400)
commit75c3e8a26a35d4f3eee299b3cc7e465f166f4e2d
tree5884183e9a8d688c73253e24b3a0fd13ed84e42d
parentcb372a505a994cb39aa75acfb8b3bcf94787cf94
drm/vmwgfx: Trigger a modeset when the screen moves

When multi-monitor is cycled the X,Y position of the Screen Target will
likely change but the resolution will not. We need to trigger a modeset
when this occurs in order to recreate the Screen Target with the correct
X,Y position.

Fixes a bug where multiple displays are shown in a single scrollable
host window rather than in 2+ windows on separate host displays.

Fixes: 426826933109 ("drm/vmwgfx: Filter modes which exceed graphics memory")
Signed-off-by: Ian Forbes <ian.forbes@broadcom.com>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240624205951.23343-1-ian.forbes@broadcom.com
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c