diff options
author | Sinclair Yeh <syeh@vmware.com> | 2017-06-02 01:53:27 -0400 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2017-06-07 06:07:35 -0400 |
commit | 8a309c8a2d0619efe29ec652c163d6b89eff9f9f (patch) | |
tree | f6b3ea975834a59ffb73357d70f6437f89e276eb | |
parent | 07678eca2cf9c9a18584e546c2b2a0d0c9a3150c (diff) |
drm/vmwgfx: Make sure to update STDU when FB is updated
When a new FB is bound, we have to send an update command otherwise
the new FB may not be shown
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c index bad31bdf09b6..60ace30246cf 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | |||
@@ -1355,6 +1355,11 @@ vmw_stdu_primary_plane_atomic_update(struct drm_plane *plane, | |||
1355 | DRM_ERROR("Failed to bind surface to STDU.\n"); | 1355 | DRM_ERROR("Failed to bind surface to STDU.\n"); |
1356 | else | 1356 | else |
1357 | crtc->primary->fb = plane->state->fb; | 1357 | crtc->primary->fb = plane->state->fb; |
1358 | |||
1359 | ret = vmw_stdu_update_st(dev_priv, stdu); | ||
1360 | |||
1361 | if (ret) | ||
1362 | DRM_ERROR("Failed to update STDU.\n"); | ||
1358 | } | 1363 | } |
1359 | 1364 | ||
1360 | 1365 | ||