]> Git Repo - linux.git/commitdiff
drm/vmwgfx: Make sure to update STDU when FB is updated
authorSinclair Yeh <[email protected]>
Fri, 2 Jun 2017 05:53:27 +0000 (07:53 +0200)
committerThomas Hellstrom <[email protected]>
Wed, 7 Jun 2017 10:07:35 +0000 (12:07 +0200)
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 <[email protected]>
Reviewed-by: Thomas Hellstrom <[email protected]>
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c

index bad31bdf09b6c1d8bd31663c7973e1ebb912f340..60ace30246cf91617cbefca190747f05c51f235a 100644 (file)
@@ -1355,6 +1355,11 @@ vmw_stdu_primary_plane_atomic_update(struct drm_plane *plane,
                DRM_ERROR("Failed to bind surface to STDU.\n");
        else
                crtc->primary->fb = plane->state->fb;
+
+       ret = vmw_stdu_update_st(dev_priv, stdu);
+
+       if (ret)
+               DRM_ERROR("Failed to update STDU.\n");
 }
 
 
This page took 0.056869 seconds and 4 git commands to generate.