diff options
Diffstat (limited to 'recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch')
-rw-r--r-- | recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch b/recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch deleted file mode 100644 index 82d37986..00000000 --- a/recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | From 515b1f1c1902ae22914a93982935e2328d2240d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yong Gan <b45748@freescale.com> | ||
3 | Date: Thu, 19 Nov 2015 15:30:24 +0800 | ||
4 | Subject: [PATCH 2/2] MGS-1252: Fix for Qt5_CinematicExperience will meet | ||
5 | screen blur | ||
6 | |||
7 | When the Qt5_CinematicExperience is created, window creates with 1920x1080 | ||
8 | and the starting coordiantes more than screen coordinate. | ||
9 | Ths cause access beyond the surface and system hang on lcd display | ||
10 | |||
11 | Date: Nov 18, 2015 | ||
12 | Signed-off-by: Prabhu <prabhu.sundararaj@freescale.com> | ||
13 | --- | ||
14 | src/gal2d-renderer.c | 30 ++++++++++++++++++------------ | ||
15 | 1 file changed, 18 insertions(+), 12 deletions(-) | ||
16 | |||
17 | diff --git a/src/gal2d-renderer.c b/src/gal2d-renderer.c | ||
18 | index c68f02c..6e7d640 100644 | ||
19 | --- a/src/gal2d-renderer.c | ||
20 | +++ b/src/gal2d-renderer.c | ||
21 | @@ -661,12 +661,11 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 | ||
22 | gcsRECT srcRect = {0}; | ||
23 | gcsRECT dstrect = {0}; | ||
24 | gctUINT32 horFactor, verFactor; | ||
25 | - int useStretch =1; | ||
26 | int useFilterBlit = 0; | ||
27 | gctUINT srcWidth = 0; | ||
28 | gctUINT srcHeight = 0; | ||
29 | gctUINT32 srcStride[3]; | ||
30 | - gceSURF_FORMAT srcFormat;; | ||
31 | + gceSURF_FORMAT srcFormat; | ||
32 | gctUINT32 srcPhyAddr[3]; | ||
33 | gctUINT32 dstPhyAddr[3]; | ||
34 | gctUINT dstWidth = 0; | ||
35 | @@ -702,14 +701,16 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 | ||
36 | srcRect.right = ev->surface->width; | ||
37 | srcRect.bottom = ev->surface->height; | ||
38 | |||
39 | - if(useFilterBlit) | ||
40 | + dstsurface = go->nNumBuffers > 1 ? | ||
41 | + go->renderSurf[go->activebuffer] : | ||
42 | + go->offscreenSurface; | ||
43 | + gcmVERIFY_OK(gcoSURF_GetAlignedSize(dstsurface, &dstWidth, &dstHeight, (gctINT *)&dstStrides)); | ||
44 | + gcmVERIFY_OK(gcoSURF_Lock(dstsurface, &dstPhyAddr[0], gcvNULL)); | ||
45 | + gcmVERIFY_OK(gcoSURF_Unlock(dstsurface, gcvNULL)); | ||
46 | + | ||
47 | + if(galIsYUVFormat(srcFormat) == gcvSTATUS_TRUE) | ||
48 | { | ||
49 | - dstsurface = go->nNumBuffers > 1 ? | ||
50 | - go->renderSurf[go->activebuffer] : | ||
51 | - go->offscreenSurface; | ||
52 | - gcmVERIFY_OK(gcoSURF_GetAlignedSize(dstsurface, &dstWidth, &dstHeight, (gctINT *)&dstStrides)); | ||
53 | - gcmVERIFY_OK(gcoSURF_Lock(dstsurface, &dstPhyAddr[0], gcvNULL)); | ||
54 | - gcmVERIFY_OK(gcoSURF_Unlock(dstsurface, gcvNULL)); | ||
55 | + useFilterBlit = 1; | ||
56 | } | ||
57 | else | ||
58 | { | ||
59 | @@ -739,7 +740,7 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 | ||
60 | dstrect.right = bb_rects[0].x2; | ||
61 | dstrect.bottom = bb_rects[0].y2; | ||
62 | |||
63 | - if(dstrect.right < 0 || dstrect.bottom < 0) | ||
64 | + if(dstrect.right < 0 || dstrect.bottom < 0 || dstrect.left > dstWidth || dstrect.top > dstHeight) | ||
65 | { | ||
66 | break; | ||
67 | } | ||
68 | @@ -829,8 +830,7 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 | ||
69 | } | ||
70 | else | ||
71 | { | ||
72 | - if(useStretch) | ||
73 | - gcmVERIFY_OK(galGetStretchFactors(&srcRect, &dstrect, &horFactor, &verFactor)); | ||
74 | + gcmVERIFY_OK(galGetStretchFactors(&srcRect, &dstrect, &horFactor, &verFactor)); | ||
75 | |||
76 | if(verFactor == 65536 && horFactor == 65536) | ||
77 | { | ||
78 | @@ -839,6 +839,12 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 | ||
79 | } | ||
80 | else | ||
81 | { | ||
82 | + dstrect.right = dstrect.right < dstWidth ? dstrect.right : dstWidth; | ||
83 | + dstrect.bottom = dstrect.bottom < dstHeight ? dstrect.bottom : dstHeight; | ||
84 | + srcRect.right = srcRect.right < dstWidth ? srcRect.right : dstWidth; | ||
85 | + srcRect.bottom = srcRect.bottom < dstHeight ? srcRect.bottom : dstHeight; | ||
86 | + | ||
87 | + gcmVERIFY_OK(galGetStretchFactors(&srcRect, &dstrect, &horFactor, &verFactor)); | ||
88 | /* Program the stretch factors. */ | ||
89 | gcmVERIFY_OK(gco2D_SetStretchFactors(gr->gcoEngine2d, horFactor, verFactor)); | ||
90 | |||
91 | -- | ||
92 | 1.9.1 | ||
93 | |||