1
0
Fork 0

1:45.3-3: Add mr3373

Signed-off-by: Mingi Sung <dawdleming@gmail.com>
This commit is contained in:
Mingi Sung 2024-01-16 17:44:44 +09:00
parent f7de0cacfe
commit 007e58ac29
Signed by: sungmg
GPG key ID: 8914E37E2BA317DD
3 changed files with 46 additions and 6 deletions

View file

@ -1,7 +1,7 @@
pkgbase = mutter-performance
pkgdesc = A window manager for GNOME | Attempts to improve performances with non-upstreamed merge-requests and frequent stable branch resync
pkgver = 45.3
pkgrel = 2
pkgrel = 3
epoch = 1
url = https://gitlab.gnome.org/GNOME/mutter
arch = x86_64
@ -41,10 +41,12 @@ pkgbase = mutter-performance
source = mr1441.patch
source = mr3304.patch
source = mr3327.patch
source = mr3373.patch
sha256sums = SKIP
sha256sums = 8d082a002e3506f67cf40c9ea03119e9e24f6c02238e633265a51992501e9799
sha256sums = 1339a8235b54a218c109a1d5e0992b3dca0f7610beb98fab0c27f0d68e026e16
sha256sums = 2bf8e12fe60a35469352510cc14a76603722441c1cb47ae9548a79712a01a762
sha256sums = 3e1f07b696ad37b1c639a524c092cd9259444bc6156542901ccaec936bea240f
pkgname = mutter-performance
groups = gnome

View file

@ -11,8 +11,8 @@
### PACKAGE OPTIONS
## MERGE REQUESTS SELECTION
# Merge Requests List: ('579' '1441' '3304' '3327')
_merge_requests_to_use=('1441' '3304' '3327')
# Merge Requests List: ('579' '1441' '3304' '3327' '3373')
_merge_requests_to_use=('1441' '3304' '3327' '3373')
## Disable building the DOCS package (Enabled if not set)
# Remember to unset this variable when producing .SRCINFO
@ -32,7 +32,7 @@ else
fi
epoch=1
pkgver=45.3
pkgrel=2
pkgrel=3
pkgdesc="A window manager for GNOME | Attempts to improve performances with non-upstreamed merge-requests and frequent stable branch resync"
url="https://gitlab.gnome.org/GNOME/mutter"
arch=(x86_64 aarch64)
@ -78,11 +78,13 @@ _commit=5012d22cb96ba22c4133e2e488ea1f5241fb50e2 # tags/45.3^0
source=("$pkgname::git+https://gitlab.gnome.org/GNOME/mutter.git#commit=$_commit"
'mr1441.patch'
'mr3304.patch'
'mr3327.patch')
'mr3327.patch'
'mr3373.patch')
sha256sums=('SKIP'
'8d082a002e3506f67cf40c9ea03119e9e24f6c02238e633265a51992501e9799'
'1339a8235b54a218c109a1d5e0992b3dca0f7610beb98fab0c27f0d68e026e16'
'2bf8e12fe60a35469352510cc14a76603722441c1cb47ae9548a79712a01a762')
'2bf8e12fe60a35469352510cc14a76603722441c1cb47ae9548a79712a01a762'
'3e1f07b696ad37b1c639a524c092cd9259444bc6156542901ccaec936bea240f')
pkgver() {
cd $pkgname
@ -182,6 +184,14 @@ prepare() {
# fails to acquire realtime priority on boot when the shell starts before the rtkit daemon
pick_mr '3327' 'mr3327.patch' 'patch'
# Title: kms/crtc: Increase default deadline evasion to 1000 microseconds
# Author: Daniel van Vugt <daniel.van.vugt@canonical.com>
# URL: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3373
# Type: 3
# Status: 2
# Comment: This fixes three issues that were preventing GPU copies on the Nvidia proprietary driver.
pick_mr '3373' 'mr3373.patch' 'patch'
# Title: Draft: Dynamic triple/double buffering (v4)
# Author: Daniel van Vugt <daniel.van.vugt@canonical.com>
# URL: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441

28
mr3373.patch Normal file
View file

@ -0,0 +1,28 @@
From: Daniel van Vugt <daniel.van.vugt@canonical.com>
Date: Tue, 7 Nov 2023 16:30:01 +0200
Subject: kms/crtc: Increase default deadline evasion to 1000 microseconds
This seems to be enough to fix cursor stutter on X1 Carbon 10 (OLED)
where the display is 90Hz and the touchpad ~145Hz.
Bug: https://gitlab.gnome.org/GNOME/mutter/-/issues/3146
Bug-Ubuntu: https://launchpad.net/bugs/2040977
Origin: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3373
Forwarded: yes
---
src/backends/native/meta-kms-crtc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backends/native/meta-kms-crtc.c b/src/backends/native/meta-kms-crtc.c
index b17e846..d6a8228 100644
--- a/src/backends/native/meta-kms-crtc.c
+++ b/src/backends/native/meta-kms-crtc.c
@@ -28,7 +28,7 @@
#include "backends/native/meta-kms-update-private.h"
#include "backends/native/meta-kms-utils.h"
-#define DEADLINE_EVASION_US 800
+#define DEADLINE_EVASION_US 1000
#define DEADLINE_EVASION_WITH_KMS_TOPIC_US 1000
typedef struct _MetaKmsCrtcPropTable