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_tex_video.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_tex_video.c')
-rw-r--r-- | vmwgfx/vmwgfx_tex_video.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vmwgfx/vmwgfx_tex_video.c b/vmwgfx/vmwgfx_tex_video.c index 449266b..2971ed7 100644 --- a/vmwgfx/vmwgfx_tex_video.c +++ b/vmwgfx/vmwgfx_tex_video.c @@ -199,7 +199,7 @@ stop_video(ScrnInfoPtr pScrn, pointer data, Bool shutdown) for (i=0; i<3; ++i) { if (priv->yuv[i]) { - xa_surface_destroy(priv->yuv[i]); + xa_surface_unref(priv->yuv[i]); priv->yuv[i] = NULL; } for (j=0; j<2; ++j) { @@ -539,7 +539,8 @@ copy_packed_data(ScrnInfoPtr pScrn, REGION_RESET(pScrn->pScreen, ®, &box); } - if (xa_surface_handle(srf, &handle, &stride) != 0) { + if (xa_surface_handle(srf, xa_handle_type_shared, + &handle, &stride) != 0) { ret = BadAlloc; break; } |