From 98f1d56bfe9a11c0bcc3e1f4194779e0b777e77e Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Mon, 11 Sep 2017 16:46:10 +0800 Subject: 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 --- va/x11/va_dricommon.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'va/x11') 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); -- cgit v1.2.1