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

Kristian Høgsberg hoegsberg at gmail.com
Fri Nov 16 15:39:51 PST 2012


On Fri, Nov 16, 2012 at 11:48:46AM +0200, Ander Conselvan de Oliveira wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Assume that overlays can't handle alpha blending even with a constant
> alpha factor.

Thanks, both look good.

Kristian

> 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
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list