diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2017-09-11 16:46:10 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2017-09-27 12:49:34 +0800 |
commit | 98f1d56bfe9a11c0bcc3e1f4194779e0b777e77e (patch) | |
tree | 3783f80d10b5effa5108553b747f85eedd6ba46c /va/x11 | |
parent | 0fd48763d9f5f0ad73b208fe90516344683fb872 (diff) | |
download | libva-98f1d56bfe9a11c0bcc3e1f4194779e0b777e77e.tar.gz |
Add reserved bytes to most structures
The reserved bytest must be set to 0, then we can add new fields to those
structures in future without worrying about the API compatibility too
much.
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'va/x11')
-rw-r--r-- | va/x11/va_dricommon.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/va/x11/va_dricommon.h b/va/x11/va_dricommon.h index 1566e85..ae17fac 100644 --- a/va/x11/va_dricommon.h +++ b/va/x11/va_dricommon.h @@ -55,6 +55,8 @@ union dri_buffer unsigned int pitch; unsigned int cpp; unsigned int flags; + /** \brief Reserved bytes for future use, must be zero */ + unsigned int va_reserved[8]; } dri2; }; @@ -82,6 +84,8 @@ struct dri_state union dri_buffer *(*getRenderingBuffer)(VADriverContextP ctx, struct dri_drawable *dri_drawable); void (*close)(VADriverContextP ctx); #endif + /** \brief Reserved bytes for future use, must be zero */ + unsigned long va_reserved[16]; }; Bool va_isDRI2Connected(VADriverContextP ctx, char **driver_name); |