]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: fix update of display surface when resolution changes
authorRoland Scheidegger <sroland@vmware.com>
Thu, 9 Jul 2020 16:54:14 +0000 (18:54 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 14 Jul 2020 02:05:52 +0000 (04:05 +0200)
commit49c3f6eac21cc864f89453e6e07879d1354aa6fc
tree2d0f3e1d249524b31c1a2821761d586ba9a5d964
parent2f52d995c6c72b1e6698b1c1bc08037d232d5cb4
drm/vmwgfx: fix update of display surface when resolution changes

The assignment of metadata overwrote the new display resolution values,
hence we'd miss the size actually changed and wouldn't redefine the
surface. This would then lead to command buffer error when trying to
update the screen target (due to the size mismatch), and result in a
VM with black screen.

Fixes: 242284631784 ("drm/vmwgfx: Refactor surface_define to use vmw_surface_metadata")
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Signed-off-by: Roland Scheidegger <sroland@vmware.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c