[Mesa-dev] [PATCH 2/5] st/egl: add NATIVE_PARAM_PREMULTIPLIED_ALPHA

Chia-I Wu olvaffe at gmail.com
Wed Sep 7 20:22:23 PDT 2011


From: Chia-I Wu <olv at lunarg.com>

Return TRUE if the display supports premultiplied alpha.
---
 src/gallium/state_trackers/egl/common/native.h |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/egl/common/native.h b/src/gallium/state_trackers/egl/common/native.h
index 0c86b75..c85aedf 100644
--- a/src/gallium/state_trackers/egl/common/native.h
+++ b/src/gallium/state_trackers/egl/common/native.h
@@ -70,7 +70,13 @@ enum native_param_type {
    /**
     * Return the maximum supported swap interval.
     */
-   NATIVE_PARAM_MAX_SWAP_INTERVAL
+   NATIVE_PARAM_MAX_SWAP_INTERVAL,
+
+   /**
+    * Return TRUE if the display supports premultiplied alpha, regardless of
+    * the surface color format.
+    */
+   NATIVE_PARAM_PREMULTIPLIED_ALPHA
 };
 
 /**
@@ -85,6 +91,9 @@ struct native_present_control {
 
    /**< wait until the given vsyncs has passed since the last presentation */
    uint swap_interval;
+
+   /**< pixels use premultiplied alpha */
+   boolean premultiplied_alpha;
 };
 
 struct native_surface {
-- 
1.7.5.4



More information about the mesa-dev mailing list