All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Hochstein <tom.hochstein@nxp.com>
To: <meta-freescale@yoctoproject.org>
Subject: [meta-fsl-arm][PATCH 6/6] weston: Fix weston build failed
Date: Fri, 7 Oct 2016 17:36:59 -0500	[thread overview]
Message-ID: <1475879819-13562-7-git-send-email-tom.hochstein@nxp.com> (raw)
In-Reply-To: <1475879819-13562-1-git-send-email-tom.hochstein@nxp.com>

Expose more variale to G2d compositor, because it is not easy to get the physical address
in G2d compositor.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 ...-MGS-2221-imx-171-Fix-weston-build-failed.patch | 62 ++++++++++++++++++++++
 recipes-graphics/wayland/weston_%.bbappend         |  1 +
 2 files changed, 63 insertions(+)
 create mode 100644 recipes-graphics/wayland/weston/0015-MGS-2221-imx-171-Fix-weston-build-failed.patch

diff --git a/recipes-graphics/wayland/weston/0015-MGS-2221-imx-171-Fix-weston-build-failed.patch b/recipes-graphics/wayland/weston/0015-MGS-2221-imx-171-Fix-weston-build-failed.patch
new file mode 100644
index 0000000..3f851ee
--- /dev/null
+++ b/recipes-graphics/wayland/weston/0015-MGS-2221-imx-171-Fix-weston-build-failed.patch
@@ -0,0 +1,62 @@
+From 66a40759e44998edecf242bc100be0fcdd62937e Mon Sep 17 00:00:00 2001
+From: Yong Gan <yong.gan@nxp.com>
+Date: Thu, 1 Sep 2016 09:36:33 +0800
+Subject: [PATCH] MGS-2221 [#imx-171] Fix weston build failed
+
+Expose more variale to G2d compositor, because it is not easy to get the physical address
+in G2d compositor.
+
+Upstream Status: Inappropriate [i.MX specific]
+
+Date: Aug 31, 2016
+Signed-off-by: Yong Gan <yong.gan@nxp.com>
+---
+ src/g2d-renderer.c | 18 ++++++++++++++++--
+ 1 file changed, 16 insertions(+), 2 deletions(-)
+
+diff --git a/src/g2d-renderer.c b/src/g2d-renderer.c
+index 30bf1a5..1009115 100644
+--- a/src/g2d-renderer.c
++++ b/src/g2d-renderer.c
+@@ -48,6 +48,20 @@
+ #define BUFFER_DAMAGE_COUNT 2
+ #define ALIGN_WIDTH(a) (((a) + 15) & ~15)
+ 
++struct wl_viv_buffer
++{
++    struct wl_resource *resource;
++    gcoSURF  surface;
++    gctINT32 width;
++    gctINT32 height;
++    gctINT32 format;
++    gctUINT alignedWidth;
++    gctUINT alignedHeight;
++    gctUINT32 physical[3];
++    gctUINT32 gpuBaseAddr;
++    gceTILING tiling;
++};
++
+ typedef struct _g2dRECT
+ {
+ 	int left;
+@@ -316,7 +330,7 @@ static void printG2dSurfaceInfo(struct g2d_surfaceEx* g2dSurface, const char* ms
+ }
+ 
+ static void
+-get_g2dSurface(gcsWL_VIV_BUFFER *buffer, struct g2d_surfaceEx *g2dSurface)
++get_g2dSurface(struct wl_viv_buffer *buffer, struct g2d_surfaceEx *g2dSurface)
+ {
+ 	if(buffer->width < 0 || buffer->height < 0)
+ 	{
+@@ -687,7 +701,7 @@ g2d_renderer_repaint_output(struct weston_output *output,
+ static void
+ g2d_renderer_attach_egl(struct weston_surface *es, struct weston_buffer *buffer)
+ {
+-	gcsWL_VIV_BUFFER *vivBuffer = wl_resource_get_user_data(buffer->resource);
++	struct wl_viv_buffer *vivBuffer = wl_resource_get_user_data(buffer->resource);
+ 	struct g2d_surface_state *gs = get_surface_state(es);
+ 	buffer->width = vivBuffer->width;
+ 	buffer->height = vivBuffer->height;
+-- 
+1.9.1
+
diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend
index c79a3fd..aa3e4f2 100644
--- a/recipes-graphics/wayland/weston_%.bbappend
+++ b/recipes-graphics/wayland/weston_%.bbappend
@@ -13,6 +13,7 @@ SRC_URI_append_imxgpu2d = " \
     file://0012-MGS-1783-xwld-Add-clone-mode-support-for-multi-displ.patch \
     file://0013-MGS-1945-Use-common-API-to-support-G2d-compositor.patch    \
     file://0014-MGS-1987-Get-stride-from-the-FB-buffe.patch                \
+    file://0015-MGS-2221-imx-171-Fix-weston-build-failed.patch             \
 "
 
 PACKAGECONFIG_IMX_TO_APPEND = ""
-- 
1.9.1



      parent reply	other threads:[~2016-10-07 22:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-07 22:36 [meta-fsl-arm][PATCH 0/6] weston: build-fix and patches Tom Hochstein
2016-10-07 22:36 ` [meta-fsl-arm][PATCH 1/6] weston: Fix i.MX 6SoloLite build Tom Hochstein
2016-10-10 14:00   ` Otavio Salvador
2016-10-10 14:05     ` Tom Hochstein
2016-10-10 14:09       ` Otavio Salvador
2016-10-07 22:36 ` [meta-fsl-arm][PATCH 2/6] weston: Re-implement renderer using G2D Tom Hochstein
2016-10-07 22:36 ` [meta-fsl-arm][PATCH 3/6] weston: Add clone mode support for multi display Tom Hochstein
2016-10-07 22:36 ` [meta-fsl-arm][PATCH 4/6] weston: Use common API to support G2d compositor Tom Hochstein
2016-10-07 22:36 ` [meta-fsl-arm][PATCH 5/6] weston: Get stride from the FB buffer Tom Hochstein
2016-10-07 22:36 ` Tom Hochstein [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1475879819-13562-7-git-send-email-tom.hochstein@nxp.com \
    --to=tom.hochstein@nxp.com \
    --cc=meta-freescale@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.