Timo Aaltonen pushed to branch debian-unstable at X Strike Force / driver / xserver-xorg-video-amdgpu
Commits: 772469eb by Timo Aaltonen at 2022-08-23T16:27:08+03:00 Added patch from git to fix slow refresh rate with AMD GPU Screen output in reverse prime mode. (LP: #1987038) - - - - - 3 changed files: - debian/changelog - + debian/patches/0005-Initialize-present-extension-for-GPU-screen.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,10 @@ +xserver-xorg-video-amdgpu (22.0.0-3) unstable; urgency=medium + + * Added patch from git to fix slow refresh rate with AMD GPU Screen + output in reverse prime mode. (LP: #1987038) + + -- Kai-Heng Feng <kai.heng.f...@canonical.com> Fri, 19 Aug 2022 13:16:55 +0800 + xserver-xorg-video-amdgpu (22.0.0-2) unstable; urgency=medium * Added patches from git to fix slow refresh rate with Displaylink ===================================== debian/patches/0005-Initialize-present-extension-for-GPU-screen.patch ===================================== @@ -0,0 +1,76 @@ +From: Kai-Heng Feng <kai.heng.f...@canonical.com> +Date: Mon, 8 Aug 2022 10:49:11 +0800 +Subject: Initialize present extension for GPU screen + +Some laptops have the external outputs routed to dGPU, when the external +output over dGPU is the only display in reverse prime mode, we need +present extension so fake CRTC won't be used. + +(cherry picked from commit a3a012b649eb9b3066abefe163a72854514792fa) +Signed-off-by: Kai-Heng Feng <kai.heng.f...@canonical.com> +--- + src/amdgpu_kms.c | 44 +++++++++++++++++++++----------------------- + 1 file changed, 21 insertions(+), 23 deletions(-) + +diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c +index 6d65c81..9364d17 100644 +--- a/src/amdgpu_kms.c ++++ b/src/amdgpu_kms.c +@@ -2046,36 +2046,34 @@ Bool AMDGPUScreenInit_KMS(ScreenPtr pScreen, int argc, char **argv) + } + #endif + +- if (!pScreen->isGPU) { +- if (xorgGetVersion() >= XORG_VERSION_NUMERIC(1,18,3,0,0)) +- value = info->use_glamor; +- else +- value = FALSE; +- from = X_DEFAULT; ++ if (xorgGetVersion() >= XORG_VERSION_NUMERIC(1,18,3,0,0)) ++ value = info->use_glamor; ++ else ++ value = FALSE; ++ from = X_DEFAULT; + +- if (info->use_glamor) { +- if (xf86GetOptValBool(info->Options, OPTION_DRI3, &value)) +- from = X_CONFIG; ++ if (info->use_glamor) { ++ if (xf86GetOptValBool(info->Options, OPTION_DRI3, &value)) ++ from = X_CONFIG; + +- if (xf86GetOptValInteger(info->Options, OPTION_DRI, &driLevel) && +- (driLevel == 2 || driLevel == 3)) { +- from = X_CONFIG; +- value = driLevel == 3; +- } ++ if (xf86GetOptValInteger(info->Options, OPTION_DRI, &driLevel) && ++ (driLevel == 2 || driLevel == 3)) { ++ from = X_CONFIG; ++ value = driLevel == 3; + } ++ } + +- if (value) { +- value = amdgpu_sync_init(pScreen) && +- amdgpu_present_screen_init(pScreen) && +- amdgpu_dri3_screen_init(pScreen); +- +- if (!value) +- from = X_WARNING; +- } ++ if (value) { ++ value = amdgpu_sync_init(pScreen) && ++ amdgpu_present_screen_init(pScreen) && ++ amdgpu_dri3_screen_init(pScreen); + +- xf86DrvMsg(pScrn->scrnIndex, from, "DRI3 %sabled\n", value ? "en" : "dis"); ++ if (!value) ++ from = X_WARNING; + } + ++ xf86DrvMsg(pScrn->scrnIndex, from, "DRI3 %sabled\n", value ? "en" : "dis"); ++ + pScrn->vtSema = TRUE; + xf86SetBackingStore(pScreen); + ===================================== debian/patches/series ===================================== @@ -2,3 +2,4 @@ 0002-Use-randr_crtc_covering_drawable-used-in-modesetting.patch 0003-Prefer-crtc-of-primary-output-for-synchronization-wh.patch 0004-Do-not-consider-disabled-crtc-anymore-when-looking-f.patch +0005-Initialize-present-extension-for-GPU-screen.patch View it on GitLab: https://salsa.debian.org/xorg-team/driver/xserver-xorg-video-amdgpu/-/commit/772469eb67ff4abd33df04fc615634a342f6542f -- View it on GitLab: https://salsa.debian.org/xorg-team/driver/xserver-xorg-video-amdgpu/-/commit/772469eb67ff4abd33df04fc615634a342f6542f You're receiving this email because of your account on salsa.debian.org.