diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2015-06-28 02:50:56 -0700 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2015-08-05 14:01:10 +0200 |
commit | fd006a43a8c4c9356ace60eacd8ae68954fa25e0 (patch) | |
tree | 3b80fd9dbe7ef28a7d262caaec08b0857e33f629 /drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | |
parent | 9b590783b3d6d2e06516788d1061176109677409 (diff) | |
download | linux-fd006a43a8c4c9356ace60eacd8ae68954fa25e0.tar.gz linux-fd006a43a8c4c9356ace60eacd8ae68954fa25e0.tar.bz2 linux-fd006a43a8c4c9356ace60eacd8ae68954fa25e0.zip |
drm/vmwgfx: Add a kernel interface to create a framebuffer v2
The kernel interface is needed for fbdev, and needs to be free from
a file_priv member. To accomplish this, remove the fb surface mutex
and list which isn't used anymore, anyway.
Finally, make the pin() and unpin() pin the framebuffer for all display
system backends, so that fbdev can pin its framebuffer before mapping it.
v2: Address review comments:
- Fix vmw_framebuffer_unpin() to handle also the surface framebuffer case.
- Fix vmw_kms_new_framebuffer() to actually use the only_2d parameter.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.h')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h index d6b247b1994a..9ae573640156 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h @@ -372,8 +372,6 @@ struct vmw_overlay; struct vmw_master { struct ttm_lock lock; - struct mutex fb_surf_mutex; - struct list_head fb_surf; }; struct vmw_vga_topology_state { |