[PATCH weston] rpi: Don't assign planes for surfaces with transformed buffers

Kristian Høgsberg hoegsberg at gmail.com
Thu Dec 6 19:27:58 PST 2012


On Wed, Dec 05, 2012 at 03:24:04PM +0200, Ander Conselvan de Oliveira wrote:
> Hi Kristian,
> 
> Seems like you skipped this one.

Oh yea, thanks, I thought I picked that up.  Committed.

Kristian

> Thanks,
> Ander
> 
> On 11/27/2012 05:34 PM, Ander Conselvan de Oliveira wrote:
> >Reported-by: Pekka Paalanen <ppaalanen at gmail.com>
> >---
> >Hi,
> >
> >Pekka noted that we also need this for correctness.
> >
> >Cheers,
> >Ander
> >
> >  src/compositor-rpi.c |    6 ++++++
> >  1 file changed, 6 insertions(+)
> >
> >diff --git a/src/compositor-rpi.c b/src/compositor-rpi.c
> >index c75bcda..8555d24 100644
> >--- a/src/compositor-rpi.c
> >+++ b/src/compositor-rpi.c
> >@@ -787,6 +787,12 @@ rpi_assign_plane(struct weston_surface *surface, struct rpi_output *output)
> >  		return NULL;
> >  	}
> >
> >+	if (surface->buffer_transform != WL_OUTPUT_TRANSFORM_NORMAL) {
> >+		DBG("surface %p rejected: unsupported buffer transform\n",
> >+		    surface);
> >+		return NULL;
> >+	}
> >+
> >  	/* check if this surface previously belonged to an element */
> >  	element = find_rpi_element_from_surface(surface);
> >
> >
> 


More information about the wayland-devel mailing list