Skip to contentSkip to conversation

slow rendering & fullscreen results in stale images

Bug 91540 [email protected] 1 participant 8 messages Aug 3, 2015 – Oct 16, 2015

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: [email protected]

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=91540

--- Comment #1 from Bas Nieuwenhuizen <[email protected]> --- Created attachment 117493
--> https://bugs.freedesktop.org/attachment.cgi?id=117493&action=edit
Xorg log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=91540

--- Comment #2 from Bas Nieuwenhuizen <[email protected]> --- Created attachment 117494
--> https://bugs.freedesktop.org/attachment.cgi?id=117494&action=edit
dmesg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=91540

--- Comment #3 from Michel Dänzer <[email protected]> ---
Looks like the amdgpu driver doesn't properly wait for rendering to the back buffer to finish before flipping scanout to it.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=91540

Bas Nieuwenhuizen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Bas Nieuwenhuizen <[email protected]> --- I tested this again with the agd5f/linux drm-next-4.3 branch and this bug did not occur anymore.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=91540

--- Comment #5 from Michel Dänzer <[email protected]> --- (In reply to Bas Nieuwenhuizen from comment #4)

Quoted 2 lines

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 disappear by itself after a while now.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=91540

--- Comment #6 from Michel Dänzer <[email protected]> ---
The remaining issue is fixed in
http://lists.freedesktop.org/archives/dri-devel/2015-October/092507.html .

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel