diff options
author | Max Krummenacher <max.oss.09@gmail.com> | 2015-09-14 23:09:13 +0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-04-19 15:03:19 -0300 |
commit | 680d0fb56c23fbcc1ad91c21a07611feffb62d7d (patch) | |
tree | c164032b5dcc6e8867d597c1de48467814f25b41 /recipes-graphics/xorg-driver | |
parent | 2e586d8dd59c289276214e2ed12fc522fa824adc (diff) | |
download | meta-freescale-680d0fb56c23fbcc1ad91c21a07611feffb62d7d.tar.gz |
xf86-video-imxfb-vivante: forward port GCC5.2 patch
Port to 5.0.11.p6.3-beta.
Signed-off-by: Max Krummenacher <max.oss.09@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-graphics/xorg-driver')
-rw-r--r-- | recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/0001-MGS-907-X11-EXA-Warnings-causes-GCC5.2-build-to-fail.patch | 51 |
1 files changed, 37 insertions, 14 deletions
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 index bacbe13a..cb7e4327 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | From 2d076ce73e849eae5c47941b6950efb65db498d2 Mon Sep 17 00:00:00 2001 | 1 | From 194e357faf3d7433ad4f1f2cf46f79d314ea5b38 Mon Sep 17 00:00:00 2001 |
2 | From: Prabhu <prabhu.sundararaj@freescale.com> | 2 | From: Prabhu <prabhu.sundararaj@freescale.com> |
3 | Date: Wed, 29 Jul 2015 15:32:01 -0500 | 3 | Date: Wed, 29 Jul 2015 15:32:01 -0500 |
4 | Subject: [PATCH] MGS-907: X11 EXA: Warnings causes GCC5.2 build to fail | 4 | Subject: [PATCH] MGS-907: X11 EXA: Warnings causes GCC5.2 build to fail |
@@ -16,14 +16,15 @@ Signed-off-by: Prabhu <prabhu.sundararaj@freescale.com> | |||
16 | EXA/src/vivante_fbdev/vivante_fbdev_driver.c | 2 ++ | 16 | EXA/src/vivante_fbdev/vivante_fbdev_driver.c | 2 ++ |
17 | EXA/src/vivante_gal/vivante_gal.h | 1 + | 17 | EXA/src/vivante_gal/vivante_gal.h | 1 + |
18 | EXA/src/vivante_gal/vivante_gal_surface.c | 3 ++- | 18 | EXA/src/vivante_gal/vivante_gal_surface.c | 3 ++- |
19 | 5 files changed, 10 insertions(+), 4 deletions(-) | 19 | EXA/src/vivante_gal/vivante_priv.h | 4 ++++ |
20 | 6 files changed, 14 insertions(+), 4 deletions(-) | ||
20 | mode change 100755 => 100644 EXA/src/vivante_extension/vivante_ext.c | 21 | 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 | mode change 100755 => 100644 EXA/src/vivante_gal/vivante_gal_surface.c |
22 | 23 | ||
23 | diff --git a/EXA/src/vivante_extension/vivante_ext.c b/EXA/src/vivante_extension/vivante_ext.c | 24 | diff --git a/EXA/src/vivante_extension/vivante_ext.c b/EXA/src/vivante_extension/vivante_ext.c |
24 | old mode 100755 | 25 | old mode 100755 |
25 | new mode 100644 | 26 | new mode 100644 |
26 | index 3015d57..df6fb61 | 27 | index 4bcc5ba..0d1085b |
27 | --- a/EXA/src/vivante_extension/vivante_ext.c | 28 | --- a/EXA/src/vivante_extension/vivante_ext.c |
28 | +++ b/EXA/src/vivante_extension/vivante_ext.c | 29 | +++ b/EXA/src/vivante_extension/vivante_ext.c |
29 | @@ -54,6 +54,7 @@ | 30 | @@ -54,6 +54,7 @@ |
@@ -41,11 +42,11 @@ index 3015d57..df6fb61 | |||
41 | - VIVGPUPtr gpuctx = (VIVGPUPtr) pViv->mGrCtx.mGpu; | 42 | - VIVGPUPtr gpuctx = (VIVGPUPtr) pViv->mGrCtx.mGpu; |
42 | - VIV2DGPUSurfaceReAllocNonCached(gpuctx, ppriv); | 43 | - VIV2DGPUSurfaceReAllocNonCached(gpuctx, ppriv); |
43 | + VIV2DGPUSurfaceReAllocNonCached(&pViv->mGrCtx, ppriv); | 44 | + VIV2DGPUSurfaceReAllocNonCached(&pViv->mGrCtx, ppriv); |
44 | } | 45 | // set tiled if asked |
45 | } | 46 | if(stuff->flag & VIVPIXMAP_FLAG_SHARED_TILED) |
46 | return 0; | 47 | { |
47 | diff --git a/EXA/src/vivante_fbdev/imx_display.c b/EXA/src/vivante_fbdev/imx_display.c | 48 | diff --git a/EXA/src/vivante_fbdev/imx_display.c b/EXA/src/vivante_fbdev/imx_display.c |
48 | index d5303f9..43e9432 100644 | 49 | index 876d37e..8d4eaa0 100644 |
49 | --- a/EXA/src/vivante_fbdev/imx_display.c | 50 | --- a/EXA/src/vivante_fbdev/imx_display.c |
50 | +++ b/EXA/src/vivante_fbdev/imx_display.c | 51 | +++ b/EXA/src/vivante_fbdev/imx_display.c |
51 | @@ -27,6 +27,8 @@ | 52 | @@ -27,6 +27,8 @@ |
@@ -67,7 +68,7 @@ index d5303f9..43e9432 100644 | |||
67 | return (a * b) / GCD(a, b); | 68 | return (a * b) / GCD(a, b); |
68 | } | 69 | } |
69 | diff --git a/EXA/src/vivante_fbdev/vivante_fbdev_driver.c b/EXA/src/vivante_fbdev/vivante_fbdev_driver.c | 70 | 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 | index ec407df..d35912a 100644 |
71 | --- a/EXA/src/vivante_fbdev/vivante_fbdev_driver.c | 72 | --- a/EXA/src/vivante_fbdev/vivante_fbdev_driver.c |
72 | +++ b/EXA/src/vivante_fbdev/vivante_fbdev_driver.c | 73 | +++ b/EXA/src/vivante_fbdev/vivante_fbdev_driver.c |
73 | @@ -29,8 +29,10 @@ | 74 | @@ -29,8 +29,10 @@ |
@@ -82,11 +83,11 @@ index 3e289ce..88de4e0 100644 | |||
82 | #include <xorg/shmint.h> | 83 | #include <xorg/shmint.h> |
83 | 84 | ||
84 | diff --git a/EXA/src/vivante_gal/vivante_gal.h b/EXA/src/vivante_gal/vivante_gal.h | 85 | diff --git a/EXA/src/vivante_gal/vivante_gal.h b/EXA/src/vivante_gal/vivante_gal.h |
85 | index 1fccbfd..46f0479 100644 | 86 | index e186eda..332c773 100644 |
86 | --- a/EXA/src/vivante_gal/vivante_gal.h | 87 | --- a/EXA/src/vivante_gal/vivante_gal.h |
87 | +++ b/EXA/src/vivante_gal/vivante_gal.h | 88 | +++ b/EXA/src/vivante_gal/vivante_gal.h |
88 | @@ -258,6 +258,7 @@ extern "C" { | 89 | @@ -260,6 +260,7 @@ extern "C" { |
89 | Bool VIV2DCacheOperation(GALINFOPTR galInfo, Viv2DPixmapPtr ppix, VIVFLUSHTYPE flush_type); | 90 | Bool VIV2DCacheOperation(GALINFOPTR galInfo, Viv2DPixmapPtr ppix, VIVFLUSHTYPE flush_type, int onLinearBuffer); |
90 | Bool VIV2DGPUUserMemMap(char* logical, unsigned int physical, unsigned int size, void ** mappingInfo, unsigned int * gpuAddress); | 91 | 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 VIV2DGPUUserMemUnMap(char* logical, unsigned int size, void * mappingInfo, unsigned int gpuAddress); |
92 | + Bool VIV2DGPUSurfaceReAllocNonCached(GALINFOPTR galInfo, Viv2DPixmapPtr ppriv); | 93 | + Bool VIV2DGPUSurfaceReAllocNonCached(GALINFOPTR galInfo, Viv2DPixmapPtr ppriv); |
@@ -96,10 +97,10 @@ index 1fccbfd..46f0479 100644 | |||
96 | diff --git a/EXA/src/vivante_gal/vivante_gal_surface.c b/EXA/src/vivante_gal/vivante_gal_surface.c | 97 | 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 | old mode 100755 |
98 | new mode 100644 | 99 | new mode 100644 |
99 | index 0ea67f6..f3b998d | 100 | index 036b61b..0234814 |
100 | --- a/EXA/src/vivante_gal/vivante_gal_surface.c | 101 | --- a/EXA/src/vivante_gal/vivante_gal_surface.c |
101 | +++ b/EXA/src/vivante_gal/vivante_gal_surface.c | 102 | +++ b/EXA/src/vivante_gal/vivante_gal_surface.c |
102 | @@ -584,7 +584,8 @@ static gctBOOL VIV2DGPUSurfaceAlloc(VIVGPUPtr gpuctx, gctUINT alignedWidth, gctU | 103 | @@ -673,7 +673,8 @@ static gctBOOL VIV2DGPUSurfaceAlloc(VIVGPUPtr gpuctx, gctUINT alignedWidth, gctU |
103 | return VIV2DGPUSurfaceAllocEx(gpuctx, alignedWidth, alignedHeight, bytesPerPixel, surface, getPixmapCachePolicy()); | 104 | return VIV2DGPUSurfaceAllocEx(gpuctx, alignedWidth, alignedHeight, bytesPerPixel, surface, getPixmapCachePolicy()); |
104 | } | 105 | } |
105 | 106 | ||
@@ -109,6 +110,28 @@ index 0ea67f6..f3b998d | |||
109 | GenericSurfacePtr oldSurf = gcvNULL; | 110 | GenericSurfacePtr oldSurf = gcvNULL; |
110 | GenericSurfacePtr newSurf = gcvNULL; | 111 | GenericSurfacePtr newSurf = gcvNULL; |
111 | gctUINT32 alignedWidth; | 112 | gctUINT32 alignedWidth; |
113 | diff --git a/EXA/src/vivante_gal/vivante_priv.h b/EXA/src/vivante_gal/vivante_priv.h | ||
114 | index e8ee3d2..05f5748 100644 | ||
115 | --- a/EXA/src/vivante_gal/vivante_priv.h | ||
116 | +++ b/EXA/src/vivante_gal/vivante_priv.h | ||
117 | @@ -29,6 +29,7 @@ extern "C" { | ||
118 | #include "HAL/gc_hal.h" | ||
119 | #include "HAL/gc_hal_raster.h" | ||
120 | #include "HAL/gc_hal_base.h" | ||
121 | +#include "vivante_debug.h" | ||
122 | |||
123 | /************************************************************************ | ||
124 | * PIXMAP_HANDLING_STUFF(START) | ||
125 | @@ -97,6 +98,9 @@ extern "C" { | ||
126 | * DRIVER & DEVICE Structs (END) | ||
127 | *************************************************************************/ | ||
128 | |||
129 | + gctBOOL VIV2DGPUSurfaceAllocEx(VIVGPUPtr gpuctx, gctUINT alignedWidth, gctUINT alignedHeight, | ||
130 | + gctUINT bytesPerPixel, GenericSurfacePtr * surface, enum PixmapCachePolicy cachePolicy); | ||
131 | + | ||
132 | #ifdef __cplusplus | ||
133 | } | ||
134 | #endif | ||
112 | -- | 135 | -- |
113 | 2.4.5 | 136 | 1.8.4.5 |
114 | 137 | ||