diff options
author | Austin Yuan <shengquan.yuan@gmail.com> | 2013-03-01 08:42:22 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-05 09:38:35 +0800 |
commit | 872761938971f87df5096fd9ea456bea094695bb (patch) | |
tree | 4f16cc8963e16cf6baed075024a597ceee6288d4 /va | |
parent | 5f762795ebc7ba1d54c104bd3c4cc26a22c96f8a (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.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 + /**@}*/ /** |