summaryrefslogtreecommitdiff
path: root/va
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@gmail.com>2013-03-01 08:42:22 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-06-05 09:38:35 +0800
commit872761938971f87df5096fd9ea456bea094695bb (patch)
tree4f16cc8963e16cf6baed075024a597ceee6288d4 /va
parent5f762795ebc7ba1d54c104bd3c4cc26a22c96f8a (diff)
ASurfaceAttribExternalBuffers flags: add more memory attribute flags
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>
Diffstat (limited to 'va')
-rw-r--r--va/va.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/va/va.h b/va/va.h
index 42b77f8..baf7449 100644
--- a/va/va.h
+++ b/va/va.h
@@ -721,6 +721,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
+
/**@}*/
/**