From cb9e95582c0732cd6da2485d824a7d94da50b1f8 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:09:48 +0300 Subject: [PATCH] --- debian/changelog | 2 +- main.sh | 1 - patches/967.patch | 19 ++++++++----------- patches/series | 2 +- 4 files changed, 10 insertions(+), 14 deletions(-) diff --git a/debian/changelog b/debian/changelog index dd5bad2..e12b6ec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -xwayland (2:23.2.2-100pika2) pikauwu; urgency=medium +xwayland (2:23.2.2-100pika3) pikauwu; urgency=medium * Update to pikauwu diff --git a/main.sh b/main.sh index c28c668..6c4a777 100755 --- a/main.sh +++ b/main.sh @@ -1,6 +1,5 @@ # Clone Upstream git clone https://gitlab.freedesktop.org/xorg/xserver.git -b xwayland-23.2.2 ./xwayland -#git clone https://gitlab.freedesktop.org/ekurzinger/xserver.git -b explicit-sync ./xwayland cp -rvf ./debian ./xwayland/ cd ./xwayland for i in $(cat ../patches/series) ; do echo "Applying Patch: $i" && patch -Np1 -i ../patches/$i || bash -c "echo "Applying Patch $i Failed!" && exit 2"; done diff --git a/patches/967.patch b/patches/967.patch index a7577f3..69e50d1 100644 --- a/patches/967.patch +++ b/patches/967.patch @@ -1607,7 +1607,7 @@ index 4f94f16e44..2eb57abfff 100644 GitLab -From 02621661f676debe73956c0a8fc0d914664711a4 Mon Sep 17 00:00:00 2001 +From 58ecd7b607825be028d49f5ec273a0718ec0868e Mon Sep 17 00:00:00 2001 From: Erik Kurzinger Date: Tue, 15 Aug 2023 15:32:47 -0700 Subject: [PATCH 5/5] xwayland: add support for wp_linux_drm_syncobj_v1 @@ -1630,7 +1630,7 @@ Signed-off-by: Erik Kurzinger hw/xwayland/xwayland-glamor-gbm.c | 174 +++++++++++++++++++++++++- hw/xwayland/xwayland-glamor.c | 84 +++++++++++++ hw/xwayland/xwayland-glamor.h | 26 ++++ - hw/xwayland/xwayland-present.c | 51 ++++++-- + hw/xwayland/xwayland-present.c | 48 +++++-- hw/xwayland/xwayland-present.h | 1 - hw/xwayland/xwayland-screen.c | 1 + hw/xwayland/xwayland-screen.h | 7 ++ @@ -1638,7 +1638,7 @@ Signed-off-by: Erik Kurzinger hw/xwayland/xwayland-window.c | 11 ++ hw/xwayland/xwayland-window.h | 1 + present/present_execute.c | 7 +- - 12 files changed, 420 insertions(+), 14 deletions(-) + 12 files changed, 417 insertions(+), 14 deletions(-) diff --git a/hw/xwayland/meson.build b/hw/xwayland/meson.build index f2038ab7c3..434b0ceade 100644 @@ -2112,7 +2112,7 @@ index 6f46043642..d1a8982b88 100644 #ifdef XV /* glamor Xv Adaptor */ diff --git a/hw/xwayland/xwayland-present.c b/hw/xwayland/xwayland-present.c -index 3a0c1d40f4..fb1df379f7 100644 +index 3a0c1d40f4..66e7f4ffe8 100644 --- a/hw/xwayland/xwayland-present.c +++ b/hw/xwayland/xwayland-present.c @@ -27,7 +27,6 @@ @@ -2165,13 +2165,10 @@ index 3a0c1d40f4..fb1df379f7 100644 if (reason) *reason = PRESENT_FLIP_REASON_UNKNOWN; -@@ -734,6 +741,13 @@ xwl_present_check_flip(RRCrtcPtr crtc, +@@ -734,6 +741,10 @@ xwl_present_check_flip(RRCrtcPtr crtc, if (!xwl_glamor_check_flip(present_window, pixmap)) return FALSE; -+ /* If glamor doesn't support implicit sync and the compositor doesn't -+ * support explicit sync, we cannot flip -+ */ + if (!xwl_glamor_supports_implicit_sync(xwl_screen) && + !xwl_screen->explicit_sync) + return FALSE; @@ -2179,7 +2176,7 @@ index 3a0c1d40f4..fb1df379f7 100644 /* Can't flip if the window pixmap doesn't match the xwl_window parent * window's, e.g. because a client redirected this window or one of its * parents. -@@ -812,6 +826,7 @@ xwl_present_flip(present_vblank_ptr vblank, RegionPtr damage) +@@ -812,6 +823,7 @@ xwl_present_flip(present_vblank_ptr vblank, RegionPtr damage) PixmapPtr pixmap = vblank->pixmap; struct xwl_window *xwl_window = xwl_window_from_window(present_window); struct xwl_present_window *xwl_present_window = xwl_present_window_priv(present_window); @@ -2187,7 +2184,7 @@ index 3a0c1d40f4..fb1df379f7 100644 BoxPtr damage_box; struct wl_buffer *buffer; struct xwl_present_event *event = xwl_present_event_from_vblank(vblank); -@@ -831,6 +846,28 @@ xwl_present_flip(present_vblank_ptr vblank, RegionPtr damage) +@@ -831,6 +843,28 @@ xwl_present_flip(present_vblank_ptr vblank, RegionPtr damage) event->pixmap = pixmap; @@ -2216,7 +2213,7 @@ index 3a0c1d40f4..fb1df379f7 100644 xwl_pixmap_set_buffer_release_cb(pixmap, xwl_present_buffer_release, event); /* We can flip directly to the main surface (full screen window without clips) */ -@@ -1134,10 +1171,8 @@ xwl_present_init(ScreenPtr screen) +@@ -1134,10 +1168,8 @@ xwl_present_init(ScreenPtr screen) return FALSE; xwl_screen->present_capabilities = XWL_PRESENT_CAPS; diff --git a/patches/series b/patches/series index fd38671..b19667c 100644 --- a/patches/series +++ b/patches/series @@ -1,3 +1,3 @@ #1120.patch 967.patch -#0001-xwayland-patch-fix-vsync.patch \ No newline at end of file +0001-xwayland-patch-fix-vsync.patch \ No newline at end of file