rpi: Don't assign planes for surfaces with transformed buffers
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Tue, 27 Nov 2012 15:34:52 +0000 (17:34 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 7 Dec 2012 03:27:04 +0000 (22:27 -0500)
Reported-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor-rpi.c

index df9ce79..f169d3b 100644 (file)
@@ -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);