diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2013-12-16 06:13:25 -0800 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2013-12-19 07:47:11 -0800 |
commit | c020923597d3bc30dffa89ba0a47f3b9517dd5fb (patch) | |
tree | 41a6264dfac37730eaca2ae212d615e5ef1dced4 /vmwgfx/vmwgfx_saa.h | |
parent | c8e1c498431b1f8758f62c94131c302cf3d07b39 (diff) |
vmwgfx: Add support for XMir v2.
Use the hosted infrastructure to add support for XMir.
Helpers go in vmwgfx_saa.c.
v2: Added comments for the helpers, and added a
vmwgfx_flush_dri2 to be executed when coming back from vt switch.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'vmwgfx/vmwgfx_saa.h')
-rw-r--r-- | vmwgfx/vmwgfx_saa.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vmwgfx/vmwgfx_saa.h b/vmwgfx/vmwgfx_saa.h index 5e1f40c..55f0ded 100644 --- a/vmwgfx/vmwgfx_saa.h +++ b/vmwgfx/vmwgfx_saa.h @@ -52,6 +52,7 @@ struct vmwgfx_saa_pixmap { struct xa_surface *hw; uint32_t fb_id; int hw_is_dri2_fronts; + Bool hw_is_hosted; struct _WsbmListHead sync_x_head; struct _WsbmListHead scanout_list; struct _WsbmListHead pixmap_list; @@ -115,6 +116,10 @@ vmwgfx_saa_set_master(ScreenPtr pScreen); void vmwgfx_saa_drop_master(ScreenPtr pScreen); +Bool +vmwgfx_saa_copy_to_surface(DrawablePtr pDraw, uint32_t surface_fd, + const BoxRec *dst_box, RegionPtr region); + #if (XA_TRACKER_VERSION_MAJOR <= 1) && !defined(HAVE_XA_2) #define _xa_surface_handle(_a, _b, _c) xa_surface_handle(_a, _b, _c) |