 
 VA-API version: >= 0.36 (libva 1.4.0)
 ---
- third_party/libva/va/va.h         | 103 ++++++++++++++++++++++++++++++++++++++
+ third_party/libva/va/va.h         | 102 ++++++++++++++++++++++++++++++++++++++
  third_party/libva/va/va_backend.h |  13 +++++
- 2 files changed, 116 insertions(+)
+ 2 files changed, 115 insertions(+)
 
 diff --git a/third_party/libva/va/va.h b/third_party/libva/va/va.h
-index 845760c..a88ea32 100644
+index 9455023..a839dc2 100644
 --- a/third_party/libva/va/va.h
 +++ b/third_party/libva/va/va.h
-@@ -78,6 +78,7 @@
- #ifndef _VA_H_
- #define _VA_H_
-
-+#include <stddef.h>
- #include <stdint.h>
- #include <va/va_version.h>
-
-@@ -1851,6 +1852,108 @@ VAStatus vaDestroyBuffer (
+@@ -1852,6 +1852,108 @@ VAStatus vaDestroyBuffer (
      VABufferID buffer_id
  );
-
+ 
 +/** \brief VA buffer information */
 +typedef struct {
 +    /** \brief Buffer handle */

+            VADriverContextP    ctx,
+            VABufferID          buf_id          /* in */
+        );
 };

 struct VADriverContext
--
1.9.1

+VAStatus
+vaReleaseBufferHandle(VADisplay dpy, VABufferID buf_id);
+
 /** VA buffer information */
 typedef struct {
     /** Buffer handle */
diff --git a/third_party/libva/va/va_backend.h b/third_party/libva/va/va_backend.h
index 150f8ef..844774f 100644
--- a/third_party/libva/va/va_backend.h
+++ b/third_party/libva/va/va_backend.h
@@ -392,6 +392,19 @@ struct VADriverVTable
                 VASurfaceID surface
         );
 
+        VAStatus
+        (*vaAcquireBufferHandle)(
+            VADriverContextP    ctx,
