[PATCH weston 1/2] compositor-drm: Don't use overlay when surface alpha != 1.0f

Ander Conselvan de Oliveira ander.conselvan.de.oliveira at intel.com
Fri Nov 16 01:48:46 PST 2012


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Assume that overlays can't handle alpha blending even with a constant
alpha factor.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 src/compositor-drm.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 2adec61..73a0c52 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -572,6 +572,9 @@ drm_output_prepare_overlay_surface(struct weston_output *output_base,
 	if (es->buffer == NULL)
 		return NULL;
 
+	if (es->alpha != 1.0f)
+		return NULL;
+
 	if (wl_buffer_is_shm(es->buffer))
 		return NULL;
 
-- 
1.7.10.4



More information about the wayland-devel mailing list