From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91540] slow rendering & fullscreen results in stale images Date: Mon, 03 Aug 2015 19:11:17 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0527710497==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 313DA6E225 for ; Mon, 3 Aug 2015 12:11:18 -0700 (PDT) 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 --===============0527710497== Content-Type: multipart/alternative; boundary="1438629077.2f57eC0.31932"; charset="UTF-8" --1438629077.2f57eC0.31932 Date: Mon, 3 Aug 2015 19:11:17 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91540 Bug ID: 91540 Summary: slow rendering & fullscreen results in stale images Product: DRI Version: XOrg git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: bas@basnieuwenhuizen.nl Created attachment 117492 --> https://bugs.freedesktop.org/attachment.cgi?id=117492&action=edit example application With GL applications if the render time is > 1 frame (> 2 for more reliable triggering) and the window is fullscreen, I have flickering betweeen old and new frames. Attached is an example application that if run fullscreen and sufficiently slow exhibits the problem. The quad is supposed to rotate when you press space, but the first moments you get some combination of the two rotated quads. Workarounds include: - making the window not fullscreen. - use xcompmgr to enable compositing. - using vblank_mode=0 Hardware: Sapphire R9 285 Dual-X OC 2 GB (TONGA) Software kernel from adg5f/linux drm-next-4.3-wip commit 88a7d7fa964602514496223639c4e0432fbd457b (also occurs on 4.2-rc4) drm, mesa from agd5f/... amdgpu branches xf86-video-amdgpu from master Xserver 1.17.2 My window manager is XMonad, which is a tiling window manager without compositing. The attached Xorg.0.log contains some warnings: (WW) AMDGPU(0): amdgpu_dri2_flip_event_handler: Pageflip completion event has impossible msc 189694 < target_msc 189695 However, running the example application or my original application does not (consistently) generate those warnings when run. -- You are receiving this mail because: You are the assignee for the bug. --1438629077.2f57eC0.31932 Date: Mon, 3 Aug 2015 19:11:17 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 91540
Summary slow rendering & fullscreen results in stale images
Product DRI
Version XOrg git
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter bas@basnieuwenhuizen.nl

Created attachment 117492 [details]
example application

With GL applications if the render time is > 1 frame (> 2 for more reliable
triggering) and the window is fullscreen, I have flickering betweeen old and
new frames.

Attached is an example application that if run fullscreen and sufficiently slow
exhibits the problem. The quad is supposed to rotate when you press space, but
the first moments you get some combination of the two rotated quads.

Workarounds include:
 - making the window not fullscreen.
 - use xcompmgr to enable compositing.
 - using vblank_mode=0

Hardware:
Sapphire R9 285 Dual-X OC 2 GB (TONGA)

Software
kernel from adg5f/linux drm-next-4.3-wip commit
88a7d7fa964602514496223639c4e0432fbd457b (also occurs on 4.2-rc4)
drm, mesa from agd5f/... amdgpu branches
xf86-video-amdgpu from master
Xserver 1.17.2

My window manager is XMonad, which is a tiling window manager without
compositing.

The attached Xorg.0.log contains some warnings:
(WW) AMDGPU(0): amdgpu_dri2_flip_event_handler: Pageflip completion event has
impossible msc 189694 < target_msc 189695

However, running the example application or my original application does not
(consistently) generate those warnings when run.


You are receiving this mail because:
  • You are the assignee for the bug.
--1438629077.2f57eC0.31932-- --===============0527710497== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0527710497==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91540] slow rendering & fullscreen results in stale images Date: Mon, 03 Aug 2015 19:11:37 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0737467201==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C6E846E5A5 for ; Mon, 3 Aug 2015 12:11:37 -0700 (PDT) In-Reply-To: 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 --===============0737467201== Content-Type: multipart/alternative; boundary="1438629097.6DaE36E81.31932"; charset="UTF-8" --1438629097.6DaE36E81.31932 Date: Mon, 3 Aug 2015 19:11:37 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91540 --- Comment #1 from Bas Nieuwenhuizen --- Created attachment 117493 --> https://bugs.freedesktop.org/attachment.cgi?id=117493&action=edit Xorg log -- You are receiving this mail because: You are the assignee for the bug. --1438629097.6DaE36E81.31932 Date: Mon, 3 Aug 2015 19:11:37 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"


You are receiving this mail because:
  • You are the assignee for the bug.
--1438629097.6DaE36E81.31932-- --===============0737467201== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0737467201==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91540] slow rendering & fullscreen results in stale images Date: Mon, 03 Aug 2015 19:11:57 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1654449079==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 6C6906E02A for ; Mon, 3 Aug 2015 12:11:57 -0700 (PDT) In-Reply-To: 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 --===============1654449079== Content-Type: multipart/alternative; boundary="1438629117.C4C8caD32.31932"; charset="UTF-8" --1438629117.C4C8caD32.31932 Date: Mon, 3 Aug 2015 19:11:57 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91540 --- Comment #2 from Bas Nieuwenhuizen --- Created attachment 117494 --> https://bugs.freedesktop.org/attachment.cgi?id=117494&action=edit dmesg -- You are receiving this mail because: You are the assignee for the bug. --1438629117.C4C8caD32.31932 Date: Mon, 3 Aug 2015 19:11:57 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"


You are receiving this mail because:
  • You are the assignee for the bug.
--1438629117.C4C8caD32.31932-- --===============1654449079== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1654449079==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91540] slow rendering & fullscreen results in stale images Date: Thu, 20 Aug 2015 03:54:52 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0924983938==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 214C36E0C9 for ; Wed, 19 Aug 2015 20:54:52 -0700 (PDT) In-Reply-To: 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 --===============0924983938== Content-Type: multipart/alternative; boundary="1440042892.5cfd1.8718"; charset="UTF-8" --1440042892.5cfd1.8718 Date: Thu, 20 Aug 2015 03:54:52 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D91540 --- Comment #3 from Michel D=C3=A4nzer --- Looks like the amdgpu driver doesn't properly wait for rendering to the back buffer to finish before flipping scanout to it. --=20 You are receiving this mail because: You are the assignee for the bug. --1440042892.5cfd1.8718 Date: Thu, 20 Aug 2015 03:54:52 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Comment= # 3 on bug 91540<= /a> from Michel D=C3=A4nzer
Looks like the amdgpu driver doesn't properly wait for renderi=
ng to the back
buffer to finish before flipping scanout to it.


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1440042892.5cfd1.8718-- --===============0924983938== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0924983938==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91540] slow rendering & fullscreen results in stale images Date: Thu, 20 Aug 2015 21:16:00 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1664179310==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 772EF6E21E for ; Thu, 20 Aug 2015 14:16:00 -0700 (PDT) In-Reply-To: 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 --===============1664179310== Content-Type: multipart/alternative; boundary="1440105360.A6ec0.23224"; charset="UTF-8" --1440105360.A6ec0.23224 Date: Thu, 20 Aug 2015 21:16:00 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91540 Bas Nieuwenhuizen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Bas Nieuwenhuizen --- I tested this again with the agd5f/linux drm-next-4.3 branch and this bug did not occur anymore. -- You are receiving this mail because: You are the assignee for the bug. --1440105360.A6ec0.23224 Date: Thu, 20 Aug 2015 21:16:00 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" changed bug 91540
What Removed Added
Status NEW RESOLVED
Resolution --- FIXED

Comment # 4 on bug 91540 from
I tested this again with the agd5f/linux drm-next-4.3 branch and this bug did
not occur anymore.


You are receiving this mail because:
  • You are the assignee for the bug.
--1440105360.A6ec0.23224-- --===============1664179310== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1664179310==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91540] slow rendering & fullscreen results in stale images Date: Thu, 08 Oct 2015 03:01:04 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0586905561==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 915786E6C3 for ; Wed, 7 Oct 2015 20:01:04 -0700 (PDT) In-Reply-To: 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 --===============0586905561== Content-Type: multipart/alternative; boundary="1444273264.6cBb281.12215"; charset="UTF-8" --1444273264.6cBb281.12215 Date: Thu, 8 Oct 2015 03:01:04 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D91540 --- Comment #5 from Michel D=C3=A4nzer --- (In reply to Bas Nieuwenhuizen from comment #4) > I tested this again with the agd5f/linux drm-next-4.3 branch and this bug > did not occur anymore. Is it really completely gone for you? I still seem to be seeing at least a = mild variation of the problem after bootup, though sometimes it seems to disappe= ar by itself after a while now. --=20 You are receiving this mail because: You are the assignee for the bug. --1444273264.6cBb281.12215 Date: Thu, 8 Oct 2015 03:01:04 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Comment= # 5 on bug 91540<= /a> from Michel D=C3=A4nzer
(In reply to Bas Nieuwenhuizen from comment #4)
> I tested this again with the agd5f/linux drm-nex=
t-4.3 branch and this bug
> did not occur anymore.

Is it really completely gone for you? I still seem to be seeing at least a =
mild
variation of the problem after bootup, though sometimes it seems to disappe=
ar
by itself after a while now.


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1444273264.6cBb281.12215-- --===============0586905561== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0586905561==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91540] slow rendering & fullscreen results in stale images Date: Thu, 15 Oct 2015 03:09:28 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1901224935==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 6AC666E280 for ; Wed, 14 Oct 2015 20:09:28 -0700 (PDT) In-Reply-To: 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 --===============1901224935== Content-Type: multipart/alternative; boundary="1444878568.a6881.28211"; charset="UTF-8" --1444878568.a6881.28211 Date: Thu, 15 Oct 2015 03:09:28 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D91540 --- Comment #6 from Michel D=C3=A4nzer --- The remaining issue is fixed in http://lists.freedesktop.org/archives/dri-devel/2015-October/092507.html . --=20 You are receiving this mail because: You are the assignee for the bug. --1444878568.a6881.28211 Date: Thu, 15 Oct 2015 03:09:28 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1444878568.a6881.28211-- --===============1901224935== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1901224935==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91540] slow rendering & fullscreen results in stale images Date: Fri, 16 Oct 2015 15:09:58 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1652408582==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 5808F6F055 for ; Fri, 16 Oct 2015 08:09:58 -0700 (PDT) In-Reply-To: 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 --===============1652408582== Content-Type: multipart/alternative; boundary="1445008198.C67dd60.6998"; charset="UTF-8" --1445008198.C67dd60.6998 Date: Fri, 16 Oct 2015 15:09:58 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91540 --- Comment #7 from Bas Nieuwenhuizen --- I haven't noticed any similar issues after my previous reply. -- You are receiving this mail because: You are the assignee for the bug. --1445008198.C67dd60.6998 Date: Fri, 16 Oct 2015 15:09:58 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 7 on bug 91540 from
I haven't noticed any similar issues after my previous reply.


You are receiving this mail because:
  • You are the assignee for the bug.
--1445008198.C67dd60.6998-- --===============1652408582== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1652408582==--