diff options
author | Sinclair Yeh <syeh@vmware.com> | 2017-03-23 23:39:16 +0100 |
---|---|---|
committer | Sinclair Yeh <syeh@vmware.com> | 2017-04-01 00:21:19 +0200 |
commit | 810b3e1683d00e51c8392bcee7dc7a1c65354777 (patch) | |
tree | f2190d9a3db87d37c24869236409729009e41e85 /drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | |
parent | drm/vmwgfx: Define an overlaid handle_close ioctl. (diff) | |
download | linux-810b3e1683d00e51c8392bcee7dc7a1c65354777.tar.xz linux-810b3e1683d00e51c8392bcee7dc7a1c65354777.zip |
drm/vmwgfx: Support topology greater than texture size
Most of the display servers today use a single surface to represent the
entire desktop even if it's stretched across multiple screens.
For vmwgfx with STDU, the maximum surface size is limited to the
maximum texture size on the host. On a 2D VM, this limits our
ability to support configurations with more than one 4K monitor.
To get past this limitation, we will now allow using a large DMA buf
as the framebuffer, and take care of blitting contents from this DMA buf
to the display buffer.
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_kms.h')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h index 7689f477b726..9c161d29aaeb 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h @@ -173,6 +173,10 @@ struct vmw_plane_state { unsigned long dmabuf_size; int pinned; + + /* For CPU Blit */ + struct ttm_bo_kmap_obj host_map, guest_map; + unsigned int cpp; }; |