Timo Aaltonen pushed to branch debian-unstable at X Strike Force / driver / xserver-xorg-video-amdgpu
Commits: bfcee85d by Timo Aaltonen at 2021-11-17T11:46:53+02:00 patches: Fix a regression causing corruption with fullscreen games. - - - - - f1dbb5f1 by Timo Aaltonen at 2021-11-17T11:47:11+02:00 release to sid - - - - - 3 changed files: - debian/changelog - + debian/patches/0001-glamor-Set-AMDGPU_CREATE_PIXMAP_SCANOUT-on-DRI2-and-.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +xserver-xorg-video-amdgpu (21.0.0-2) unstable; urgency=medium + + * patches: Fix a regression causing corruption with fullscreen games. + + -- Timo Aaltonen <[email protected]> Wed, 17 Nov 2021 11:46:59 +0200 + xserver-xorg-video-amdgpu (21.0.0-1) experimental; urgency=medium * New upstream release. ===================================== debian/patches/0001-glamor-Set-AMDGPU_CREATE_PIXMAP_SCANOUT-on-DRI2-and-.patch ===================================== @@ -0,0 +1,63 @@ +From 69365526d0a477e0d7842571a72266631c77742d Mon Sep 17 00:00:00 2001 +From: Dor Askayo <[email protected]> +Date: Sat, 21 Aug 2021 19:11:05 +0300 +Subject: [PATCH] glamor: Set AMDGPU_CREATE_PIXMAP_SCANOUT on DRI2 and shared + pixmaps +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The scanout usage flag wasn't applied for DRI2 and shared pixmaps +in 0732f81a2c67, resulting in GPU artifacts in some scenarios. + +Fixes: 0732f81a2c67 ("glamor: Make pixmap scanout compatible if its + dimensions are") +Closes: https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/issues/41 +Signed-off-by: Dor Askayo <[email protected]> +Signed-off-by: Michel Dänzer <[email protected]> +Reviewed-by: Michel Dänzer <[email protected]> +--- + src/amdgpu_glamor.c | 20 +++++++++++--------- + 1 file changed, 11 insertions(+), 9 deletions(-) + +diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c +index fb7a46b..31fcfb4 100644 +--- a/src/amdgpu_glamor.c ++++ b/src/amdgpu_glamor.c +@@ -209,6 +209,14 @@ amdgpu_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, + if (!format) + return NULL; + ++ if (usage != CREATE_PIXMAP_USAGE_BACKING_PIXMAP && ++ !info->shadow_primary && ++ w >= scrn->virtualX && ++ w <= scrn->displayWidth && ++ h == scrn->virtualY && ++ format->bitsPerPixel == scrn->bitsPerPixel) ++ usage |= AMDGPU_CREATE_PIXMAP_SCANOUT; ++ + if (!(usage & AMDGPU_CREATE_PIXMAP_SCANOUT) && + !AMDGPU_CREATE_PIXMAP_SHARED(usage)) { + if (info->shadow_primary) { +@@ -218,15 +226,9 @@ amdgpu_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, + usage |= AMDGPU_CREATE_PIXMAP_LINEAR | + AMDGPU_CREATE_PIXMAP_GTT; + } else if (usage != CREATE_PIXMAP_USAGE_BACKING_PIXMAP) { +- if (w < scrn->virtualX || w > scrn->displayWidth || +- h != scrn->virtualY || +- format->bitsPerPixel != scrn->bitsPerPixel) { +- pixmap = glamor_create_pixmap(screen, w, h, depth, usage); +- if (pixmap) +- return pixmap; +- } else { +- usage |= AMDGPU_CREATE_PIXMAP_SCANOUT; +- } ++ pixmap = glamor_create_pixmap(screen, w, h, depth, usage); ++ if (pixmap) ++ return pixmap; + } + } + +-- +2.32.0 + ===================================== debian/patches/series ===================================== @@ -1 +1,2 @@ #placeholder +0001-glamor-Set-AMDGPU_CREATE_PIXMAP_SCANOUT-on-DRI2-and-.patch View it on GitLab: https://salsa.debian.org/xorg-team/driver/xserver-xorg-video-amdgpu/-/compare/13c9c71899670dcffaa98fe21567dd3ee941c9f0...f1dbb5f1cf682313a93b8da56d081672e4d185bf -- View it on GitLab: https://salsa.debian.org/xorg-team/driver/xserver-xorg-video-amdgpu/-/compare/13c9c71899670dcffaa98fe21567dd3ee941c9f0...f1dbb5f1cf682313a93b8da56d081672e4d185bf You're receiving this email because of your account on salsa.debian.org.

