From: bugzilla-daemon@freedesktop.org Subject: [Bug 110417] regression drm-next-5.2-wip: breaks vsync of new Compton xrender backend Date: Sun, 14 Apr 2019 08:55:08 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1034889617==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D4FF891E1 for ; Sun, 14 Apr 2019 08:55:09 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1034889617== Content-Type: multipart/alternative; boundary="15552321090.da87.27511" Content-Transfer-Encoding: 7bit --15552321090.da87.27511 Date: Sun, 14 Apr 2019 08:55:09 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D110417 Bug ID: 110417 Summary: regression drm-next-5.2-wip: breaks vsync of new Compton xrender backend Product: DRI Version: DRI git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: tempel.julian@gmail.com Created attachment 143962 --> https://bugs.freedesktop.org/attachment.cgi?id=3D143962&action=3Dedit xorg log showing the pageflipping issue Either build Compton from git "next" branch or use latest 6.2 release: https://github.com/yshui/compton Start Compton with new xrender vsync: compton --config /dev/null --backend=3Dxrender --vsync --experimental-backe= nds Result: There is tearing at the very top of the screen, can be easily verif= ied by playing this juddertest video in fullscreen: https://youtu.be/_gBBz7IMz1Y This is a regression that was introduced in drm-next-5.2-wip. There is no tearing when: -using linux-mainline 5.1-rc4 or stable 5.0 kernel -There is also no tearing when using drm-next-5.2-wip branch, but append amdgpu.dc=3D0 to kernel start parameters. -There's also no tearing when using Compton's GLX backends, which use MESA_swap_control for vsync. The attached xorg log testifies that there is a problem with pageflipping, = as it is flooded with [ 14.785] Failed to get FB for flip [ 14.785] (WW) AMDGPU(0): Page flip failed: Resource temporarily unavailable [ 14.785] (EE) AMDGPU(0): present flip failed Compton's new xrender backend uses the present extension to implement vsync, which works well apart from that amdgpu driver regression. It doesn't make a difference if modesetting or amdgpu DDX is used. The problem wasn't introduced recently into drm-next-5.2-wip, it probably existed from the start of that branch or shortly after. Programs versions used: Compton 6.2 drm-next-5.2-wip-git ce933436e554f76a41612c257a2e6eb1eb6ac759 xorg-server-git 6975807945d12c07f00e18df7fafeff43efa0267 xf86-video-amdgpu 19.0.1 mesa-git 19.1 109912.9e0c744f07a --=20 You are receiving this mail because: You are the assignee for the bug.= --15552321090.da87.27511 Date: Sun, 14 Apr 2019 08:55:09 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 110417
Summary regression drm-next-5.2-wip: breaks vsync of new Compton xren= der backend
Product DRI
Version DRI git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter tempel.julian@gmail.com

Created =
attachment 143962 [details]
xorg log showing the pageflipping issue

Either build Compton from git "next" branch or use latest 6.2 rel=
ease:
https://github.com/yshui/compt=
on

Start Compton with new xrender vsync:
compton --config /dev/null --backend=3Dxrender --vsync --experimental-backe=
nds

Result: There is tearing at the very top of the screen, can be easily verif=
ied
by playing this juddertest video in fullscreen:
https://youtu.be/_gBBz7IMz1Y

This is a regression that was introduced in drm-next-5.2-wip.

There is no tearing when:
-using linux-mainline 5.1-rc4 or stable 5.0 kernel
-There is also no tearing when using drm-next-5.2-wip branch, but append
amdgpu.dc=3D0 to kernel start parameters.
-There's also no tearing when using Compton's GLX backends, which use
MESA_swap_control for vsync.

The attached xorg log testifies that there is a problem with pageflipping, =
as
it is flooded with
 [    14.785] Failed to get FB for flip
 [    14.785] (WW) AMDGPU(0): Page flip failed: Resource temporarily
unavailable
 [    14.785] (EE) AMDGPU(0): present flip failed


Compton's new xrender backend uses the present extension to implement vsync,
which works well apart from that amdgpu driver regression.
It doesn't make a difference if modesetting or amdgpu DDX is used.
The problem wasn't introduced recently into drm-next-5.2-wip, it probably
existed from the start of that branch or shortly after.

Programs versions used:
Compton 6.2
drm-next-5.2-wip-git ce933436e554f76a41612c257a2e6eb1eb6ac759
xorg-server-git 6975807945d12c07f00e18df7fafeff43efa0267
xf86-video-amdgpu 19.0.1
mesa-git 19.1 109912.9e0c744f07a


You are receiving this mail because:
  • You are the assignee for the bug.
= --15552321090.da87.27511-- --===============1034889617== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1034889617==--