[Intel-gfx] [PATCH 1/4] glamor: Added flags to indicate whether to use glamor in UXA.

Zhigang Gong zhigang.gong at linux.intel.com
Mon Nov 14 13:09:01 CET 2011


Added two new flags UXA_USE_GLAMOR and UXA_USE_GLAMOR_ONLY.
When UXA_USE_GLAMOR or UXA_USE_GLAMOR_ONLY is set, then it
will use GLAMOR to perform rendering operations by default.
If GLAMOR failed to accelerate the operation and UXA_USE_GLAMOR
is set, it then continue to the normal UXA code path to do
the rendering. If the UXA_USE_GLAMOR_ONLY is set, it then
jump to fallback path directly and avoid the UXA acceleration
code.

Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
 uxa/uxa.h |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/uxa/uxa.h b/uxa/uxa.h
index e001c53..21e6f2a 100644
--- a/uxa/uxa.h
+++ b/uxa/uxa.h
@@ -543,6 +543,22 @@ typedef struct _UxaDriver {
  */
 #define UXA_TWO_BITBLT_DIRECTIONS	(1 << 2)
 
+/**
+ * UXA_USE_GLAMOR indicates to use glamor acceleration to perform rendering
+ * as first choice. And if glamor fail to accelerate the rendering, then goto
+ * normal path to do the rendering.
+ */
+#define UXA_USE_GLAMOR			(1 << 3)
+
+/**
+ * UXA_USE_GLAMOR_ONLY indicates to use glamor acceleration to perform rendering.
+ * And if glamor fail to accelerate the rendering, then goto fallback to 
+ * use CPU to do the rendering.
+ */
+#define UXA_USE_GLAMOR_ONLY		(1 << 4)
+
+#define UXA_GLAMOR_FLAGS		(UXA_USE_GLAMOR | UXA_USE_GLAMOR_ONLY)
+
 /** @} */
 
 /** @name UXA CreatePixmap hint flags
-- 
1.7.4.4




More information about the Intel-gfx mailing list