diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-03-05 22:54:10 +0100 |
---|---|---|
committer | Zhao, Yakui <yakui.zhao@intel.com> | 2014-09-09 09:51:22 +0800 |
commit | 2e11383b5157c0e933399308de8591dd5c5b5058 (patch) | |
tree | b21cc85749557d586158797c85e299433de2f15d /src/i965_drv_video.h | |
parent | b18479e4fdd7af7cf2840542ef19dbe9114fdeaf (diff) | |
download | libva-intel-driver-2e11383b5157c0e933399308de8591dd5c5b5058.tar.gz libva-intel-driver-2e11383b5157c0e933399308de8591dd5c5b5058.tar.bz2 libva-intel-driver-2e11383b5157c0e933399308de8591dd5c5b5058.zip |
Add support for new VA buffer export APIs.
Implement va{Acquire,Release}BufferHandle() hooks so that to allow
VA surface or VA image buffer sharing with thirdparty APIs like EGL,
OpenCL, etc.
v2: made sure to sync bo before export, improved VA buffer type check.
v3: tracked internal resources on acquire, disposed them on release.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
(cherry picked from commit 483bb130925182f2096cd9e6fa5dbae6a55e7764)
Diffstat (limited to 'src/i965_drv_video.h')
-rw-r--r-- | src/i965_drv_video.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i965_drv_video.h b/src/i965_drv_video.h index 7b931d2..a72bb64 100644 --- a/src/i965_drv_video.h +++ b/src/i965_drv_video.h @@ -287,6 +287,10 @@ struct object_buffer int num_elements; int size_element; VABufferType type; + + /* Export state */ + unsigned int export_refcount; + VABufferInfo export_state; }; struct object_image |