Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 1B6C3E00D01; Mon, 16 May 2016 12:26:50 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.195 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 378BBE00931 for ; Mon, 16 May 2016 12:26:40 -0700 (PDT) Received: by mail-qk0-f195.google.com with SMTP id i7so15406160qkd.1 for ; Mon, 16 May 2016 12:26:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:organization; bh=rNIbox/GFxaYXtW3hhXiQGsy0glv+k9P57BXRUZYLVk=; b=byjDuF6jRlrSfh6W0/0XEZm51qJXKQTtOItzI2qwu/SCuZXXA4dXl/Ff+/r2UlY0H+ Hx95hgobGf4ZLvv/CQ5a1Q9hO1h/doR59ARv2xzaJ5B4TG3SIc5PfIxoCTKrgUSafqEt tDA5CH4SuG6NURx0dM4wGYqi3Geo/T0DJpZGSlF88HwuZ36PHo+O5DMi3FdiB9IlxSp4 BM/L8k2zBsHon8o+DtknA424gk9s7p6mwQ70+7ERnVAkiVLUvK4br4xFJrtC+5pZc95K D28aLY4Yx4Sigx3JSuiXAg8seNZ8CMMU/Yueg/hXmwpmVDqS4Ffo7ovOkwl0AuV/GKOm VNwg== X-Gm-Message-State: AOPr4FUxrnRG1/fADfZJYv8/NfMnAyZNDx6XijoIZ9D0EgFRRSRPgJ8qSoMdLnmw0+PT2w== X-Received: by 10.55.70.66 with SMTP id t63mr33498915qka.173.1463426799814; Mon, 16 May 2016 12:26:39 -0700 (PDT) Received: from localhost ([187.23.154.250]) by smtp.gmail.com with ESMTPSA id i206sm10764612qhi.9.2016.05.16.12.26.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 May 2016 12:26:38 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Mon, 16 May 2016 16:26:32 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Mon, 16 May 2016 16:25:35 -0300 Message-Id: <1463426735-12429-8-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 2.8.2 In-Reply-To: <1463426735-12429-1-git-send-email-otavio@ossystems.com.br> References: <1463426735-12429-1-git-send-email-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador Subject: [meta-fsl-arm PATCH 8/8] weston: Rebase Vivante patch for Yocto 2.2 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2016 19:26:50 -0000 From: Tom Hochstein Signed-off-by: Tom Hochstein Signed-off-by: Otavio Salvador --- ...d-GPU-VIV-suport-for-wayland-and-weston-1.patch | 92 ++++++++++------------ 1 file changed, 40 insertions(+), 52 deletions(-) diff --git a/recipes-graphics/wayland/weston/0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch b/recipes-graphics/wayland/weston/0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch index 9d35356..cb93728 100644 --- a/recipes-graphics/wayland/weston/0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch +++ b/recipes-graphics/wayland/weston/0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch @@ -15,11 +15,11 @@ Signed-off-by: Prabhu create mode 100644 src/gal2d-renderer.c create mode 100644 src/gal2d-renderer.h -diff --git a/Makefile.am b/Makefile.am -index 62719c9..86d3dfa 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -214,6 +214,18 @@ gl_renderer_la_SOURCES = \ +Index: weston-1.10.0/Makefile.am +=================================================================== +--- weston-1.10.0.orig/Makefile.am 2016-05-12 10:52:23.308495113 -0500 ++++ weston-1.10.0/Makefile.am 2016-05-12 10:52:23.524496184 -0500 +@@ -231,6 +231,18 @@ src/vertex-clipping.h \ shared/helpers.h endif @@ -38,10 +38,10 @@ index 62719c9..86d3dfa 100644 if ENABLE_X11_COMPOSITOR module_LTLIBRARIES += x11-backend.la -diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c -index 81281d0..c6f732e 100644 ---- a/src/compositor-fbdev.c -+++ b/src/compositor-fbdev.c +Index: weston-1.10.0/src/compositor-fbdev.c +=================================================================== +--- weston-1.10.0.orig/src/compositor-fbdev.c 2016-05-12 10:52:21.356485434 -0500 ++++ weston-1.10.0/src/compositor-fbdev.c 2016-05-12 11:41:07.000000000 -0500 @@ -49,6 +49,7 @@ #include "libinput-seat.h" #include "gl-renderer.h" @@ -50,7 +50,7 @@ index 81281d0..c6f732e 100644 struct fbdev_backend { struct weston_backend base; -@@ -58,7 +59,9 @@ struct fbdev_backend { +@@ -58,7 +59,9 @@ struct udev *udev; struct udev_input input; int use_pixman; @@ -60,9 +60,9 @@ index 81281d0..c6f732e 100644 }; struct fbdev_screeninfo { -@@ -93,15 +96,20 @@ struct fbdev_output { - pixman_image_t *shadow_surface; - void *shadow_buf; +@@ -91,15 +94,20 @@ + /* pixman details. */ + pixman_image_t *hw_surface; uint8_t depth; + + NativeDisplayType display; @@ -81,7 +81,7 @@ index 81281d0..c6f732e 100644 static const char default_seat[] = "seat0"; -@@ -476,6 +484,10 @@ fbdev_frame_buffer_destroy(struct fbdev_output *output) +@@ -447,6 +455,10 @@ strerror(errno)); output->fb = NULL; @@ -92,7 +92,7 @@ index 81281d0..c6f732e 100644 } static void fbdev_output_destroy(struct weston_output *base); -@@ -483,7 +495,7 @@ static void fbdev_output_disable(struct weston_output *base); +@@ -454,7 +466,7 @@ static int fbdev_output_create(struct fbdev_backend *backend, @@ -101,7 +101,7 @@ index 81281d0..c6f732e 100644 { struct fbdev_output *output; struct weston_config_section *section; -@@ -494,7 +506,7 @@ fbdev_output_create(struct fbdev_backend *backend, +@@ -463,7 +475,7 @@ uint32_t config_transform; char *s; @@ -110,7 +110,7 @@ index 81281d0..c6f732e 100644 output = zalloc(sizeof *output); if (output == NULL) -@@ -547,7 +559,7 @@ fbdev_output_create(struct fbdev_backend *backend, +@@ -516,7 +528,7 @@ free(s); weston_output_init(&output->base, backend->compositor, @@ -119,13 +119,11 @@ index 81281d0..c6f732e 100644 output->fb_info.height_mm, config_transform, 1); -@@ -570,10 +582,41 @@ fbdev_output_create(struct fbdev_backend *backend, +@@ -524,10 +536,39 @@ if (backend->use_pixman) { if (pixman_renderer_output_create(&output->base) < 0) - goto out_shadow_surface; -- } else { -+ } -+ else if(backend->use_gal2d) { + goto out_hw_surface; ++ } else if(backend->use_gal2d) { + + char* fbenv = getenv("FB_FRAMEBUFFER_0"); + setenv("FB_FRAMEBUFFER_0", device, 1); @@ -146,11 +144,10 @@ index 81281d0..c6f732e 100644 + output->display, + (NativeWindowType)output->window) < 0) { + weston_log("gal_renderer_output_create failed.\n"); -+ goto out_shadow_surface; ++ goto out_hw_surface; + } + -+ } -+ else { + } else { setenv("HYBRIS_EGLPLATFORM", "wayland", 1); + output->window = fbCreateWindow(backend->display, -1, -1, 0, 0); + if (output->window == NULL) { @@ -163,20 +160,16 @@ index 81281d0..c6f732e 100644 gl_renderer->opaque_attribs, NULL, 0) < 0) { weston_log("gl_renderer_output_create failed.\n"); -@@ -634,7 +677,11 @@ fbdev_output_destroy(struct weston_output *base) - free(output->shadow_buf); - output->shadow_buf = NULL; - } -- } else { -+ } -+ else if (backend->use_gal2d) { +@@ -573,6 +614,8 @@ + if (backend->use_pixman) { + if (base->renderer_state != NULL) + pixman_renderer_output_destroy(base); ++ } else if (backend->use_gal2d) { + gal2d_renderer->output_destroy(base); -+ } -+ else { + } else { gl_renderer->output_destroy(base); } - -@@ -697,7 +744,7 @@ fbdev_output_reenable(struct fbdev_backend *backend, +@@ -636,7 +679,7 @@ * are re-initialised. */ device = output->device; fbdev_output_destroy(base); @@ -185,7 +178,7 @@ index 81281d0..c6f732e 100644 return 0; } -@@ -863,7 +910,50 @@ fbdev_backend_create(struct weston_compositor *compositor, int *argc, char *argv +@@ -789,7 +832,50 @@ if (backend->use_pixman) { if (pixman_renderer_init(compositor) < 0) goto out_launcher; @@ -237,7 +230,7 @@ index 81281d0..c6f732e 100644 gl_renderer = weston_load_module("gl-renderer.so", "gl_renderer_interface"); if (!gl_renderer) { -@@ -871,17 +961,22 @@ fbdev_backend_create(struct weston_compositor *compositor, int *argc, char *argv +@@ -797,17 +883,22 @@ goto out_launcher; } @@ -264,7 +257,7 @@ index 81281d0..c6f732e 100644 udev_input_init(&backend->input, compositor, backend->udev, seat_id); -@@ -911,13 +1006,20 @@ backend_init(struct weston_compositor *compositor, int *argc, char *argv[], +@@ -838,13 +929,20 @@ struct fbdev_parameters param = { .tty = 0, /* default to current tty */ .device = "/dev/fb0", /* default frame buffer */ @@ -286,11 +279,10 @@ index 81281d0..c6f732e 100644 }; parse_options(fbdev_options, ARRAY_LENGTH(fbdev_options), argc, argv); -diff --git a/src/gal2d-renderer.c b/src/gal2d-renderer.c -new file mode 100644 -index 0000000..c68f02c ---- /dev/null -+++ b/src/gal2d-renderer.c +Index: weston-1.10.0/src/gal2d-renderer.c +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ weston-1.10.0/src/gal2d-renderer.c 2016-05-12 11:37:05.000000000 -0500 @@ -0,0 +1,1342 @@ +/* + * Copyright (c) 2015 Freescale Semiconductor, Inc. @@ -1634,11 +1626,10 @@ index 0000000..c68f02c + .output_create = gal2d_renderer_output_create, + .output_destroy = gal2d_renderer_output_destroy, +}; -diff --git a/src/gal2d-renderer.h b/src/gal2d-renderer.h -new file mode 100644 -index 0000000..279358d ---- /dev/null -+++ b/src/gal2d-renderer.h +Index: weston-1.10.0/src/gal2d-renderer.h +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ weston-1.10.0/src/gal2d-renderer.h 2016-05-12 10:52:23.524496184 -0500 @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2015 Freescale Semiconductor, Inc. @@ -1690,6 +1681,3 @@ index 0000000..279358d +}; + +#endif --- -2.5.1 - -- 2.8.2