diff options
author | Rob Clark <robdclark@gmail.com> | 2013-06-10 13:31:31 -0400 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2013-08-02 17:59:28 +0200 |
commit | 0945bea5fc32eacb7bf42639efbd45dcd43e7ab5 (patch) | |
tree | f7c3a1d1a4c6fa1a6114fdfd93073e39846cc7bf /vmwgfx/vmwgfx_dri2.c | |
parent | b3345886332ee2b9fd1348dc2cd36257dfd71986 (diff) |
vmwgfx: update for XA API changes
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Tested-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'vmwgfx/vmwgfx_dri2.c')
-rw-r--r-- | vmwgfx/vmwgfx_dri2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vmwgfx/vmwgfx_dri2.c b/vmwgfx/vmwgfx_dri2.c index 7de0772..2f007f0 100644 --- a/vmwgfx/vmwgfx_dri2.c +++ b/vmwgfx/vmwgfx_dri2.c @@ -201,7 +201,8 @@ dri2_do_create_buffer(DrawablePtr pDraw, DRI2Buffer2Ptr buffer, unsigned int for } private->srf = srf; - if (xa_surface_handle(srf, &buffer->name, &buffer->pitch) != 0) + if (xa_surface_handle(srf, xa_handle_type_shared, + &buffer->name, &buffer->pitch) != 0) return FALSE; buffer->cpp = xa_format_depth(xa_surface_format(srf)) / 8; @@ -222,7 +223,7 @@ dri2_do_destroy_buffer(DrawablePtr pDraw, DRI2BufferPtr buffer) struct vmwgfx_saa_pixmap *vpix = vmwgfx_saa_pixmap(private->pPixmap); if (--private->refcount == 0 && srf) { - xa_surface_destroy(srf); + xa_surface_unref(srf); } /* |