summaryrefslogtreecommitdiff
path: root/recipes/xorg-driver/xf86-video-msm/compile_cfbbd17f0d4ab0f30915594d74e1b2b12c4ff8a1.patch
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>2010-04-06 21:37:04 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>2010-04-06 22:19:46 +0200
commitc233ed019d22cb0571d14ed402acd0d699ce74d1 (patch)
tree1b8b2daa7ad2ab0a57164a918a1f15c70791d357 /recipes/xorg-driver/xf86-video-msm/compile_cfbbd17f0d4ab0f30915594d74e1b2b12c4ff8a1.patch
parentaa7fa11e618731ddc3db28fa56abe31a33265192 (diff)
xf86-video-msm : bump git version(fixes gtk issue),rebased patch,also made it compile automatically
*We had an issue with gtk+ programs resulting in screen corruption,this is now fixed with this version *rebased the patches to make it work with the new version *switched to machine arch(thanks XorA and hrw),that permit us to copy a kernel header in the sources, unfortunately it also depends on another non-staged kernel header(kgsl_drm.h) that was manually copied in the files dir *The copy of the kenrel headers in the source directory permit us to compile it (thanks mickeyl for how to do it corectly) *removed neon for htcdream machine,if someone wants to support more machines or architectures, he will have to find a better way and modify the recipe,maybe using a python @ function that checks TARGET_CC_ARCH,and as CosmicPenguin said in #oe "Thats what open source is all about"
Diffstat (limited to 'recipes/xorg-driver/xf86-video-msm/compile_cfbbd17f0d4ab0f30915594d74e1b2b12c4ff8a1.patch')
-rw-r--r--recipes/xorg-driver/xf86-video-msm/compile_cfbbd17f0d4ab0f30915594d74e1b2b12c4ff8a1.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/recipes/xorg-driver/xf86-video-msm/compile_cfbbd17f0d4ab0f30915594d74e1b2b12c4ff8a1.patch b/recipes/xorg-driver/xf86-video-msm/compile_cfbbd17f0d4ab0f30915594d74e1b2b12c4ff8a1.patch
new file mode 100644
index 0000000000..ece53568b0
--- /dev/null
+++ b/recipes/xorg-driver/xf86-video-msm/compile_cfbbd17f0d4ab0f30915594d74e1b2b12c4ff8a1.patch
@@ -0,0 +1,51 @@
+Index: git/src/mdp/mdp.c
+===================================================================
+--- git.orig/src/mdp/mdp.c
++++ git/src/mdp/mdp.c
+@@ -172,6 +172,8 @@ static void DisplayMSMBlitError(MSMPtr p
+
+ void mdpBlitFlush(MSMPtr pMsm)
+ {
++#ifdef MSMFB_ASYNC_BLIT
++
+ int ret;
+
+ if (pMsm->AsyncOp) {
+@@ -184,6 +186,7 @@ void mdpBlitFlush(MSMPtr pMsm)
+ DisplayMSMBlitError(pMsm, mdp_blit_list.count, &(mdp_blit_list.req[0]));
+
+ mdp_blit_list.count = 0;
++#endif
+ }
+
+ void mdpBlitReset(void)
+Index: git/src/msm-dri2.c
+===================================================================
+--- git.orig/src/msm-dri2.c
++++ git/src/msm-dri2.c
+@@ -87,11 +87,12 @@ MSMDRI2DoFlip(ScreenPtr pScreen, PixmapP
+ vinfo.reserved[2] = handle;
+
+ /* the swap interval goes into the third reserved field */
+- vinfo.reserved[3] = pPixmap ? pScreen->swapInterval : 1;
++ //vinfo.reserved[3] = pPixmap ? pScreen->swapInterval : 1;
+
+ /* reserved[4] is the allocation type */
++#ifdef MDP_BLIT_SRC_GEM
+ vinfo.reserved[4] = MDP_BLIT_SRC_GEM;
+-
++#endif
+ ret = ioctl(pMsm->fd, FBIOPAN_DISPLAY, &vinfo);
+
+ if (ret)
+@@ -456,8 +457,8 @@ MSMDRI2ScreenInit(ScreenPtr pScreen)
+ #endif
+
+ #if DRI2INFOREC_VERSION >= 4
+- info.ScheduleSwap = MSMDRI2ScheduleSwap;
+- pScreen->swapInterval = 1;
++// info.ScheduleSwap = MSMDRI2ScheduleSwap;
++// pScreen->swapInterval = 1;
+ #endif
+ info.CopyRegion = MSMDRI2CopyRegion;
+