From 3050d8fa94782202edb10c84e73ebad6dad9ac1f Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Tue, 27 Nov 2012 17:34:52 +0200 Subject: [PATCH] rpi: Don't assign planes for surfaces with transformed buffers Reported-by: Pekka Paalanen --- src/compositor-rpi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compositor-rpi.c b/src/compositor-rpi.c index df9ce79d..f169d3b7 100644 --- a/src/compositor-rpi.c +++ b/src/compositor-rpi.c @@ -752,6 +752,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);