ASurfaceAttribExternalBuffers flags: add more memory attribute flags
authorAustin Yuan <shengquan.yuan@gmail.com>
Fri, 1 Mar 2013 00:42:22 +0000 (08:42 +0800)
committerAustin Yuan <shengquan.yuan@gmail.com>
Mon, 4 Mar 2013 01:24:25 +0000 (09:24 +0800)
The external user pointer buffers may be allocated as cacheable or
non-cacheable, with the addtitional cache attribute flags, it can help
driver implementation to set correct cache attribute into device
memory controller (e.g. MMU)

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
va/va.h

diff --git a/va/va.h b/va/va.h
index 9752b42..71db404 100644 (file)
--- a/va/va.h
+++ b/va/va.h
@@ -724,6 +724,15 @@ typedef struct _VASurfaceAttribExternalBuffers {
 /**@{*/
 /** \brief Enable memory tiling */
 #define VA_SURFACE_EXTBUF_DESC_ENABLE_TILING   0x00000001
+/** \brief Memory is cacheable */
+#define VA_SURFACE_EXTBUF_DESC_CACHED          0x00000002
+/** \brief Memory is non-cacheable */
+#define VA_SURFACE_EXTBUF_DESC_UNCACHED                0x00000004
+/** \brief Memory is write-combined */
+#define VA_SURFACE_EXTBUF_DESC_WC              0x00000008
+/** \brief Memory is protected */
+#define VA_SURFACE_EXTBUF_DESC_PROTECTED        0x80000000
+
 /**@}*/
 
 /**