diff options
-rw-r--r-- | meta-xfce/recipes-xfce/xfwm4/files/0001-Revert-compositor-Revert-to-GLX-as-default-vblank-me.patch | 92 | ||||
-rw-r--r-- | meta-xfce/recipes-xfce/xfwm4/xfwm4_4.16.0.bb (renamed from meta-xfce/recipes-xfce/xfwm4/xfwm4_4.14.5.bb) | 5 |
2 files changed, 2 insertions, 95 deletions
diff --git a/meta-xfce/recipes-xfce/xfwm4/files/0001-Revert-compositor-Revert-to-GLX-as-default-vblank-me.patch b/meta-xfce/recipes-xfce/xfwm4/files/0001-Revert-compositor-Revert-to-GLX-as-default-vblank-me.patch deleted file mode 100644 index 04fd623e8f..0000000000 --- a/meta-xfce/recipes-xfce/xfwm4/files/0001-Revert-compositor-Revert-to-GLX-as-default-vblank-me.patch +++ /dev/null | |||
@@ -1,92 +0,0 @@ | |||
1 | From acdceb0b28d86199b8c2233880fa8a04cb24d4d4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Kai Kang <kai.kang@windriver.com> | ||
3 | Date: Wed, 24 Jul 2019 09:48:04 +0800 | ||
4 | Subject: [PATCH] Revert "compositor: Revert to GLX as default vblank method | ||
5 | (again)" | ||
6 | |||
7 | This reverts commit e07574d6e7a2dbaa08c3ba4765c6306073d9493e. | ||
8 | |||
9 | It sets the default vblank method (auto) to GLX from 4.13.2. But it | ||
10 | fails to start xfwm4 on intel-x86-64 boards with error: | ||
11 | |||
12 | | xfwm4: ../mesa-19.1.1/src/mesa/drivers/dri/i965/intel_mipmap_tree.c:1293: | ||
13 | | intel_miptree_match_image: Assertion `image->TexObject->Target == mt->target' failed. | ||
14 | | Aborted | ||
15 | |||
16 | There is also a RHEL defect: | ||
17 | https://bugzilla.redhat.com/show_bug.cgi?id=1678334 | ||
18 | |||
19 | Revert the commit to fix the issue. | ||
20 | |||
21 | Upstream-Status: Inappropriate [workaround] | ||
22 | |||
23 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
24 | --- | ||
25 | src/compositor.c | 41 +++++++++++++++++++---------------------- | ||
26 | 1 file changed, 19 insertions(+), 22 deletions(-) | ||
27 | |||
28 | diff --git a/src/compositor.c b/src/compositor.c | ||
29 | index 25615282..daced607 100644 | ||
30 | --- a/src/compositor.c | ||
31 | +++ b/src/compositor.c | ||
32 | @@ -4483,13 +4483,28 @@ compositorManageScreen (ScreenInfo *screen_info) | ||
33 | XClearArea (display_info->dpy, screen_info->output, 0, 0, 0, 0, TRUE); | ||
34 | TRACE ("manual compositing enabled"); | ||
35 | |||
36 | +#ifdef HAVE_PRESENT_EXTENSION | ||
37 | + screen_info->use_present = display_info->have_present && | ||
38 | + (screen_info->vblank_mode == VBLANK_AUTO || | ||
39 | + screen_info->vblank_mode == VBLANK_XPRESENT); | ||
40 | + if (screen_info->use_present) | ||
41 | + { | ||
42 | + screen_info->present_pending = FALSE; | ||
43 | + XPresentSelectInput (display_info->dpy, | ||
44 | + screen_info->output, | ||
45 | + PresentCompleteNotifyMask); | ||
46 | + } | ||
47 | +#else /* HAVE_PRESENT_EXTENSION */ | ||
48 | + screen_info->use_present = FALSE; | ||
49 | +#endif /* HAVE_PRESENT_EXTENSION */ | ||
50 | + | ||
51 | #ifdef HAVE_EPOXY | ||
52 | - screen_info->use_glx = (screen_info->vblank_mode == VBLANK_AUTO || | ||
53 | - screen_info->vblank_mode == VBLANK_GLX); | ||
54 | + screen_info->use_glx = !screen_info->use_present && | ||
55 | #ifdef HAVE_XSYNC | ||
56 | - screen_info->use_glx &= display_info->have_xsync; | ||
57 | + display_info->have_xsync && | ||
58 | #endif /* HAVE_XSYNC */ | ||
59 | - | ||
60 | + (screen_info->vblank_mode == VBLANK_AUTO || | ||
61 | + screen_info->vblank_mode == VBLANK_GLX); | ||
62 | if (screen_info->use_glx) | ||
63 | { | ||
64 | screen_info->glx_context = None; | ||
65 | @@ -4503,24 +4518,6 @@ compositorManageScreen (ScreenInfo *screen_info) | ||
66 | screen_info->use_glx = FALSE; | ||
67 | #endif /* HAVE_EPOXY */ | ||
68 | |||
69 | -#ifdef HAVE_PRESENT_EXTENSION | ||
70 | - screen_info->use_present = display_info->have_present && | ||
71 | -#ifdef HAVE_EPOXY | ||
72 | - !screen_info->use_glx && | ||
73 | -#endif /* HAVE_EPOXY */ | ||
74 | - (screen_info->vblank_mode == VBLANK_AUTO || | ||
75 | - screen_info->vblank_mode == VBLANK_XPRESENT); | ||
76 | - if (screen_info->use_present) | ||
77 | - { | ||
78 | - screen_info->present_pending = FALSE; | ||
79 | - XPresentSelectInput (display_info->dpy, | ||
80 | - screen_info->output, | ||
81 | - PresentCompleteNotifyMask); | ||
82 | - } | ||
83 | -#else /* HAVE_PRESENT_EXTENSION */ | ||
84 | - screen_info->use_present = FALSE; | ||
85 | -#endif /* HAVE_PRESENT_EXTENSION */ | ||
86 | - | ||
87 | if (screen_info->use_present) | ||
88 | { | ||
89 | g_info ("Compositor using XPresent for vsync"); | ||
90 | -- | ||
91 | 2.20.1 | ||
92 | |||
diff --git a/meta-xfce/recipes-xfce/xfwm4/xfwm4_4.14.5.bb b/meta-xfce/recipes-xfce/xfwm4/xfwm4_4.16.0.bb index f8febe8041..3f64365f0d 100644 --- a/meta-xfce/recipes-xfce/xfwm4/xfwm4_4.14.5.bb +++ b/meta-xfce/recipes-xfce/xfwm4/xfwm4_4.16.0.bb | |||
@@ -2,14 +2,13 @@ DESCRIPTION = "Xfce4 Window Manager" | |||
2 | SECTION = "x11/wm" | 2 | SECTION = "x11/wm" |
3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d791728a073bc009b4ffaf00b7599855" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d791728a073bc009b4ffaf00b7599855" |
5 | DEPENDS = "virtual/libx11 libxfce4ui libwnck3 libxinerama exo-native" | 5 | DEPENDS = "virtual/libx11 libxfce4ui libwnck3 libxinerama" |
6 | 6 | ||
7 | inherit xfce update-alternatives features_check | 7 | inherit xfce update-alternatives features_check |
8 | 8 | ||
9 | REQUIRED_DISTRO_FEATURES = "x11" | 9 | REQUIRED_DISTRO_FEATURES = "x11" |
10 | 10 | ||
11 | SRC_URI += "file://0001-Revert-compositor-Revert-to-GLX-as-default-vblank-me.patch" | 11 | SRC_URI[sha256sum] = "1e22eae1bbb66cebfd1753b0a5606e76ecbf6b09ce4cdfd732d093c936f1feb3" |
12 | SRC_URI[sha256sum] = "d7a7c63fa42ec6d7cb3caab130d6f496be5bd7689b775d20e8786b7f3e282930" | ||
13 | 12 | ||
14 | PACKAGECONFIG ?= " \ | 13 | PACKAGECONFIG ?= " \ |
15 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'epoxy', '', d)} \ | 14 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'epoxy', '', d)} \ |