summaryrefslogtreecommitdiff
path: root/va/va_backend.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-04-02 17:47:27 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2013-06-05 09:38:35 +0800
commit8dccd7a279cdc9667c01a99257e89d652ee5194c (patch)
tree4dda80ad95c9e0f2f6c454b6d55f1fba1b7b8cca /va/va_backend.h
parentfe3504dbe1f9e1a7e33083dfd842b9c604a09c98 (diff)
API: add vaQuerySurfaceAttributes().
vaQuerySurfaceAttributes() is the recommended way to query the driver for all surface attributes that are supported by the underlying hardware. This is more useful than guessing the attribute values and testing them through vaGetSurfaceAttributes(). The older vaGetSurfaceAttributes() function is hereby removed. However, the relevant VA driver hook is kept for now, and will be removed/replaced for a future update. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'va/va_backend.h')
-rw-r--r--va/va_backend.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/va/va_backend.h b/va/va_backend.h
index f27b32f..9fe3dcf 100644
--- a/va/va_backend.h
+++ b/va/va_backend.h
@@ -392,6 +392,7 @@ struct VADriverVTable
VASurfaceID surface
);
+ /* DEPRECATED */
VAStatus
(*vaGetSurfaceAttributes)(
VADriverContextP dpy,
@@ -411,6 +412,14 @@ struct VADriverVTable
VASurfaceAttrib *attrib_list,
unsigned int num_attribs
);
+
+ VAStatus
+ (*vaQuerySurfaceAttributes)(
+ VADriverContextP dpy,
+ VAConfigID config,
+ VASurfaceAttrib *attrib_list,
+ unsigned int *num_attribs
+ );
};
struct VADriverContext