From 872761938971f87df5096fd9ea456bea094695bb Mon Sep 17 00:00:00 2001 From: Austin Yuan Date: Fri, 1 Mar 2013 08:42:22 +0800 Subject: 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 --- va/va.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'va') 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 + /**@}*/ /** -- cgit v1.2.3