diff options
author | Tom Hochstein <Tom.Hochstein@freescale.com> | 2015-07-30 18:40:16 -0500 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-04-19 15:03:14 -0300 |
commit | c69115a0373bb0495d0e3bdbc161466b121ed361 (patch) | |
tree | 4ae5751c342ef66df9f8695190a4879dccfc78ef /recipes-graphics | |
parent | 6b0957abbda370e3f40f76869411addd20683610 (diff) | |
download | meta-freescale-c69115a0373bb0495d0e3bdbc161466b121ed361.tar.gz |
xf86-video-imxfb-vivante: Fix gcc 5.2 build break
Fix build break with gcc 5.2 caused by warnings being treated as errors.
Signed-off-by: Tom Hochstein <Tom.Hochstein@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/xorg-driver/xf86-video-imxfb-vivante.inc | 3 | ||||
-rw-r--r-- | recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/0001-MGS-907-X11-EXA-Warnings-causes-GCC5.2-build-to-fail.patch | 114 |
2 files changed, 116 insertions, 1 deletions
diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante.inc b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante.inc index 684cdb4c..675f4fa5 100644 --- a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante.inc +++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante.inc | |||
@@ -13,7 +13,8 @@ DEPENDS += "virtual/xserver virtual/libx11 virtual/libgal-x11 imx-gpu-viv pixman | |||
13 | LIC_FILES_CHKSUM = "file://EXA/src/vivante_fbdev/vivante.h;endline=19;md5=95cf961a2ceacdf7cf43caef25766779" | 13 | LIC_FILES_CHKSUM = "file://EXA/src/vivante_fbdev/vivante.h;endline=19;md5=95cf961a2ceacdf7cf43caef25766779" |
14 | 14 | ||
15 | SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz \ | 15 | SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz \ |
16 | file://rc.autohdmi" | 16 | file://rc.autohdmi \ |
17 | file://0001-MGS-907-X11-EXA-Warnings-causes-GCC5.2-build-to-fail.patch" | ||
17 | 18 | ||
18 | INITSCRIPT_PACKAGES = "xserver-xorg-extension-viv-autohdmi" | 19 | INITSCRIPT_PACKAGES = "xserver-xorg-extension-viv-autohdmi" |
19 | INITSCRIPT_NAME = "rc.autohdmi" | 20 | INITSCRIPT_NAME = "rc.autohdmi" |
diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/0001-MGS-907-X11-EXA-Warnings-causes-GCC5.2-build-to-fail.patch b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/0001-MGS-907-X11-EXA-Warnings-causes-GCC5.2-build-to-fail.patch new file mode 100644 index 00000000..bacbe13a --- /dev/null +++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/0001-MGS-907-X11-EXA-Warnings-causes-GCC5.2-build-to-fail.patch | |||
@@ -0,0 +1,114 @@ | |||
1 | From 2d076ce73e849eae5c47941b6950efb65db498d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Prabhu <prabhu.sundararaj@freescale.com> | ||
3 | Date: Wed, 29 Jul 2015 15:32:01 -0500 | ||
4 | Subject: [PATCH] MGS-907: X11 EXA: Warnings causes GCC5.2 build to fail | ||
5 | |||
6 | VIV2DGPUSurfaceReAllocNonCached and imxRefreshModes were not | ||
7 | declared causing compiler warning. | ||
8 | |||
9 | Upstream Status: Pending | ||
10 | |||
11 | Date: July 29, 2015 | ||
12 | Signed-off-by: Prabhu <prabhu.sundararaj@freescale.com> | ||
13 | --- | ||
14 | EXA/src/vivante_extension/vivante_ext.c | 4 ++-- | ||
15 | EXA/src/vivante_fbdev/imx_display.c | 4 +++- | ||
16 | EXA/src/vivante_fbdev/vivante_fbdev_driver.c | 2 ++ | ||
17 | EXA/src/vivante_gal/vivante_gal.h | 1 + | ||
18 | EXA/src/vivante_gal/vivante_gal_surface.c | 3 ++- | ||
19 | 5 files changed, 10 insertions(+), 4 deletions(-) | ||
20 | mode change 100755 => 100644 EXA/src/vivante_extension/vivante_ext.c | ||
21 | mode change 100755 => 100644 EXA/src/vivante_gal/vivante_gal_surface.c | ||
22 | |||
23 | diff --git a/EXA/src/vivante_extension/vivante_ext.c b/EXA/src/vivante_extension/vivante_ext.c | ||
24 | old mode 100755 | ||
25 | new mode 100644 | ||
26 | index 3015d57..df6fb61 | ||
27 | --- a/EXA/src/vivante_extension/vivante_ext.c | ||
28 | +++ b/EXA/src/vivante_extension/vivante_ext.c | ||
29 | @@ -54,6 +54,7 @@ | ||
30 | #include "vivante.h" | ||
31 | #include "vivante_priv.h" | ||
32 | #include "vivante_common.h" | ||
33 | +#include "imx_display.h" | ||
34 | |||
35 | static unsigned char VIVEXTReqCode = 0; | ||
36 | static int VIVEXTErrorBase; | ||
37 | @@ -162,8 +163,7 @@ static int ProcVIVEXTDrawableSetFlag(register ClientPtr client) | ||
38 | VivPtr pViv = VIVPTR_FROM_SCREEN(pScreen); | ||
39 | if(pViv) | ||
40 | { | ||
41 | - VIVGPUPtr gpuctx = (VIVGPUPtr) pViv->mGrCtx.mGpu; | ||
42 | - VIV2DGPUSurfaceReAllocNonCached(gpuctx, ppriv); | ||
43 | + VIV2DGPUSurfaceReAllocNonCached(&pViv->mGrCtx, ppriv); | ||
44 | } | ||
45 | } | ||
46 | return 0; | ||
47 | diff --git a/EXA/src/vivante_fbdev/imx_display.c b/EXA/src/vivante_fbdev/imx_display.c | ||
48 | index d5303f9..43e9432 100644 | ||
49 | --- a/EXA/src/vivante_fbdev/imx_display.c | ||
50 | +++ b/EXA/src/vivante_fbdev/imx_display.c | ||
51 | @@ -27,6 +27,8 @@ | ||
52 | |||
53 | #include <fcntl.h> | ||
54 | #include <errno.h> | ||
55 | +#include <unistd.h> | ||
56 | +#include <sys/ioctl.h> | ||
57 | |||
58 | #include <linux/fb.h> | ||
59 | #include "xf86DDC.h" | ||
60 | @@ -83,7 +85,7 @@ GCD(int a, int b) | ||
61 | } | ||
62 | |||
63 | static int | ||
64 | -LCM(a, b) | ||
65 | +LCM(int a, int b) | ||
66 | { | ||
67 | return (a * b) / GCD(a, b); | ||
68 | } | ||
69 | diff --git a/EXA/src/vivante_fbdev/vivante_fbdev_driver.c b/EXA/src/vivante_fbdev/vivante_fbdev_driver.c | ||
70 | index 3e289ce..88de4e0 100644 | ||
71 | --- a/EXA/src/vivante_fbdev/vivante_fbdev_driver.c | ||
72 | +++ b/EXA/src/vivante_fbdev/vivante_fbdev_driver.c | ||
73 | @@ -29,8 +29,10 @@ | ||
74 | #include "vivante.h" | ||
75 | #include "vivante_exa.h" | ||
76 | #include "vivante_ext.h" | ||
77 | +#include "vivante_dri.h" | ||
78 | #include "imx_display.h" | ||
79 | #include <errno.h> | ||
80 | +#include <sys/ioctl.h> | ||
81 | #include <linux/fb.h> | ||
82 | #include <xorg/shmint.h> | ||
83 | |||
84 | diff --git a/EXA/src/vivante_gal/vivante_gal.h b/EXA/src/vivante_gal/vivante_gal.h | ||
85 | index 1fccbfd..46f0479 100644 | ||
86 | --- a/EXA/src/vivante_gal/vivante_gal.h | ||
87 | +++ b/EXA/src/vivante_gal/vivante_gal.h | ||
88 | @@ -258,6 +258,7 @@ extern "C" { | ||
89 | Bool VIV2DCacheOperation(GALINFOPTR galInfo, Viv2DPixmapPtr ppix, VIVFLUSHTYPE flush_type); | ||
90 | Bool VIV2DGPUUserMemMap(char* logical, unsigned int physical, unsigned int size, void ** mappingInfo, unsigned int * gpuAddress); | ||
91 | Bool VIV2DGPUUserMemUnMap(char* logical, unsigned int size, void * mappingInfo, unsigned int gpuAddress); | ||
92 | + Bool VIV2DGPUSurfaceReAllocNonCached(GALINFOPTR galInfo, Viv2DPixmapPtr ppriv); | ||
93 | Bool MapUserMemToGPU(GALINFOPTR galInfo, MemMapInfoPtr mmInfo); | ||
94 | void UnmapUserMem(GALINFOPTR galInfo, MemMapInfoPtr mmInfo); | ||
95 | /************************************************************************ | ||
96 | diff --git a/EXA/src/vivante_gal/vivante_gal_surface.c b/EXA/src/vivante_gal/vivante_gal_surface.c | ||
97 | old mode 100755 | ||
98 | new mode 100644 | ||
99 | index 0ea67f6..f3b998d | ||
100 | --- a/EXA/src/vivante_gal/vivante_gal_surface.c | ||
101 | +++ b/EXA/src/vivante_gal/vivante_gal_surface.c | ||
102 | @@ -584,7 +584,8 @@ static gctBOOL VIV2DGPUSurfaceAlloc(VIVGPUPtr gpuctx, gctUINT alignedWidth, gctU | ||
103 | return VIV2DGPUSurfaceAllocEx(gpuctx, alignedWidth, alignedHeight, bytesPerPixel, surface, getPixmapCachePolicy()); | ||
104 | } | ||
105 | |||
106 | -gctBOOL VIV2DGPUSurfaceReAllocNonCached(VIVGPUPtr gpuctx, Viv2DPixmapPtr ppriv) { | ||
107 | +Bool VIV2DGPUSurfaceReAllocNonCached(GALINFOPTR galInfo, Viv2DPixmapPtr ppriv) { | ||
108 | + VIVGPUPtr gpuctx = (VIVGPUPtr)galInfo->mGpu; | ||
109 | GenericSurfacePtr oldSurf = gcvNULL; | ||
110 | GenericSurfacePtr newSurf = gcvNULL; | ||
111 | gctUINT32 alignedWidth; | ||
112 | -- | ||
113 | 2.4.5 | ||
114 | |||