aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/xorg-driver/xf86-video-msm/compile_cfbbd17f0d4ab0f30915594d74e1b2b12c4ff8a1.patch
blob: ece53568b01343344dc16a3e35ce852433928127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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;