summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepak Rawat <drawat@vmware.com>2018-04-30 11:56:50 -0700
committerDeepak Rawat <drawat@vmware.com>2018-05-07 14:55:01 -0700
commit529b93bcd2c3d2c65b9fbb25375aca7fae9fe4aa (patch)
treee5bc462b29bc140bbff3fd73c643522ce33b0a1f
parentc2c14a86a9f80ebd6a03a43e79507aed91e94c3a (diff)
vmwgfx: Set bo_size when vmw_bo_init is successful
SOU primary plane prepare_fb hook depends upon bo_size to pin up BO (and not call a new vmw_bo_init) when a new fb size is same as current fb. This was changed in "defb1dede586fd3dc25aa7eb246d82858a7afd56", which is causing page_flip to fail on VM with low display memory and multi-mon failure when cycle monitors from secondary display. Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
-rw-r--r--vmwgfx_scrn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vmwgfx_scrn.c b/vmwgfx_scrn.c
index 936eee3..89bb1d7 100644
--- a/vmwgfx_scrn.c
+++ b/vmwgfx_scrn.c
@@ -489,6 +489,8 @@ vmw_sou_primary_plane_prepare_fb(struct drm_plane *plane,
return ret;
}
+ vps->bo_size = size;
+
/*
* TTM already thinks the buffer is pinned, but make sure the
* pin_count is upped.