summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-09-08 01:39:27 +0800
committerChia-I Wu <[email protected]>2011-09-08 11:16:12 +0800
commitf4c37d6ab256f860a755fe69dfea5fb8df217a2f (patch)
treee2d134c70e4e0da313b71810ec9385bf48c6bbc5 /src/gallium
parent08e1076fd2d3f6fb879dd2529e7d035d6a399da2 (diff)
st/egl: add NATIVE_PARAM_PREMULTIPLIED_ALPHA
Return TRUE if the display supports premultiplied alpha.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/egl/common/native.h11
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 0c86b752c92..c85aedfa5e1 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 {