diff options
Diffstat (limited to 'recipes-graphics/wayland/weston/0006-MGS-1236-imx6qp-imx6dl-First-frame-distored-when-som.patch')
-rw-r--r-- | recipes-graphics/wayland/weston/0006-MGS-1236-imx6qp-imx6dl-First-frame-distored-when-som.patch | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/recipes-graphics/wayland/weston/0006-MGS-1236-imx6qp-imx6dl-First-frame-distored-when-som.patch b/recipes-graphics/wayland/weston/0006-MGS-1236-imx6qp-imx6dl-First-frame-distored-when-som.patch deleted file mode 100644 index bed6f0c8..00000000 --- a/recipes-graphics/wayland/weston/0006-MGS-1236-imx6qp-imx6dl-First-frame-distored-when-som.patch +++ /dev/null | |||
@@ -1,106 +0,0 @@ | |||
1 | From 2bd1096ac342e251980c639543c0fad2f7173e82 Mon Sep 17 00:00:00 2001 | ||
2 | From: Prabhu Sundararaj <prabhu.sundararaj@freescale.com> | ||
3 | Date: Wed, 9 Dec 2015 18:20:35 -0600 | ||
4 | Subject: [PATCH] MGS-1236 : [imx6qp/imx6dl] First frame distored when some | ||
5 | wayland apps run continuously using g2d | ||
6 | |||
7 | gco2D_SetSource was missing when using the blit operations and | ||
8 | hence causing the issue. | ||
9 | |||
10 | If the weston started without weston.ini, animations will be disabled, | ||
11 | for xwayland the weston.ini need to be included and hence the error | ||
12 | was shown. | ||
13 | |||
14 | Also removing util functions reusing from libGAL.so | ||
15 | |||
16 | Date: Dec 10, 2015 | ||
17 | Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com> | ||
18 | --- | ||
19 | src/gal2d-renderer.c | 57 ++++++---------------------------------------------- | ||
20 | 1 file changed, 6 insertions(+), 51 deletions(-) | ||
21 | |||
22 | diff --git a/src/gal2d-renderer.c b/src/gal2d-renderer.c | ||
23 | index 6e7d640..dbec2d0 100644 | ||
24 | --- a/src/gal2d-renderer.c | ||
25 | +++ b/src/gal2d-renderer.c | ||
26 | @@ -186,56 +186,6 @@ get_output_state(struct weston_output *output) | ||
27 | return (struct gal2d_output_state *)output->renderer_state; | ||
28 | } | ||
29 | |||
30 | -static gctUINT32 | ||
31 | -galGetStretchFactor(gctINT32 SrcSize, gctINT32 DestSize) | ||
32 | -{ | ||
33 | - gctUINT stretchFactor; | ||
34 | - if ( (SrcSize > 0) && (DestSize > 1) ) | ||
35 | - { | ||
36 | - stretchFactor = ((SrcSize - 1) << 16) / (DestSize - 1); | ||
37 | - } | ||
38 | - else | ||
39 | - { | ||
40 | - stretchFactor = 0; | ||
41 | - } | ||
42 | - return stretchFactor; | ||
43 | -} | ||
44 | - | ||
45 | -static gceSTATUS | ||
46 | -galGetStretchFactors( | ||
47 | - IN gcsRECT_PTR SrcRect, | ||
48 | - IN gcsRECT_PTR DestRect, | ||
49 | - OUT gctUINT32 * HorFactor, | ||
50 | - OUT gctUINT32 * VerFactor | ||
51 | - ) | ||
52 | -{ | ||
53 | - if (HorFactor != gcvNULL) | ||
54 | - { | ||
55 | - gctINT32 src, dest; | ||
56 | - | ||
57 | - /* Compute width of rectangles. */ | ||
58 | - gcmVERIFY_OK(gcsRECT_Width(SrcRect, &src)); | ||
59 | - gcmVERIFY_OK(gcsRECT_Width(DestRect, &dest)); | ||
60 | - | ||
61 | - /* Compute and return horizontal stretch factor. */ | ||
62 | - *HorFactor = galGetStretchFactor(src, dest); | ||
63 | - } | ||
64 | - | ||
65 | - if (VerFactor != gcvNULL) | ||
66 | - { | ||
67 | - gctINT32 src, dest; | ||
68 | - | ||
69 | - /* Compute height of rectangles. */ | ||
70 | - gcmVERIFY_OK(gcsRECT_Height(SrcRect, &src)); | ||
71 | - gcmVERIFY_OK(gcsRECT_Height(DestRect, &dest)); | ||
72 | - | ||
73 | - /* Compute and return vertical stretch factor. */ | ||
74 | - *VerFactor = galGetStretchFactor(src, dest); | ||
75 | - } | ||
76 | - /* Success. */ | ||
77 | - return gcvSTATUS_OK; | ||
78 | -} | ||
79 | - | ||
80 | static gceSTATUS | ||
81 | gal2d_getSurfaceFormat(halDISPLAY_INFO info, gceSURF_FORMAT * Format) | ||
82 | { | ||
83 | @@ -725,6 +675,7 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 | ||
84 | srcStride, 1, | ||
85 | tiling, srcFormat, gcvSURF_0_DEGREE, | ||
86 | srcWidth, srcHeight); | ||
87 | + gcmVERIFY_OK(gco2D_SetSource(gr->gcoEngine2d, &srcRect)); | ||
88 | /* Setup mirror. */ | ||
89 | gcmONERROR(gco2D_SetBitBlitMirror(gr->gcoEngine2d, gcvFALSE, gcvFALSE)); | ||
90 | gcmONERROR(gco2D_SetROP(gr->gcoEngine2d, 0xCC, 0xCC)); | ||
91 | @@ -830,7 +781,11 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 | ||
92 | } | ||
93 | else | ||
94 | { | ||
95 | - gcmVERIFY_OK(galGetStretchFactors(&srcRect, &dstrect, &horFactor, &verFactor)); | ||
96 | + gcmVERIFY_OK(gco2D_CalcStretchFactor(gr->gcoEngine2d, srcRect.right - srcRect.left, | ||
97 | + dstrect.right - dstrect.left, &horFactor)); | ||
98 | + | ||
99 | + gcmONERROR(gco2D_CalcStretchFactor(gr->gcoEngine2d, srcRect.bottom - srcRect.top, | ||
100 | + dstrect.bottom - dstrect.top, &verFactor)); | ||
101 | |||
102 | if(verFactor == 65536 && horFactor == 65536) | ||
103 | { | ||
104 | -- | ||
105 | 2.6.2 | ||
106 | |||