Bug 72387

Summary: Tearing at one specific part of the screen on CAYMAN
Product: Mesa Reporter: Thomas Rohloff <v10lator>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: kai, vmerlet
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: dmesg output for DRM/radeon
/var/log/Xorg.0.log
dmesg output
/var/log/Xorg.0.log
.compton.conf

Description Thomas Rohloff 2013-12-06 08:36:37 UTC
I see this with games as well as on my (composited) desktop when scrolling very fast in firefox, for example.

Let me try to explain:
If you would cut the screen horizontally in 3 pieces the line between the middle and the down piece is where the tearing appears. It appears even with vsync.

I tried to capture it with gtk-rekordmydesktop but for some reason the video is tear-free.
Comment 1 Michel Dänzer 2013-12-06 10:44:38 UTC
Please attach /var/log/Xorg.0.log and the output of dmesg.
Comment 2 Kai 2013-12-07 21:51:39 UTC
Created attachment 90433 [details]
dmesg output for DRM/radeon

I'm seeing this too with a PITCAIRN chip (stack detailed below). Though the tearing (one, 27" monitor with 2560x1440, KDE 4.11, composited) appears like five ccentimeters from the top whenever there is fast movement or quick image changes. I'm not seeing this with Catalyst.

(Sorry for not reporting this earlier, but I totally forgot to.)

No error/warning (except not finding some cyrillic font) is logged to Xorg.0.log – do you still want to have it?

Stack used:
GPU: "PITCAIRN" (ChipID = 0x6819)
Linux: 3.12.1
libdrm: 2.4.49-2 (Debian package)
LLVM: SVN:trunk/r195435
libclc: Git:master/8e0ea3a263
Mesa: Git:master/aad2511c6d
GLAMOR: Git:master/b418b13126
DDX: Git:master/d571d6af70
KWin: 4.11.3-2 (Debian package)
Comment 3 Thomas Rohloff 2013-12-08 08:40:38 UTC
Created attachment 90445 [details]
/var/log/Xorg.0.log

As Kai said there's nothing important in Xorg.log/dmesg, I attach it anyway.
Comment 4 Thomas Rohloff 2013-12-08 08:41:28 UTC
Created attachment 90446 [details]
dmesg output

Sorry, wrong file (just woke up).
Comment 5 Thomas Rohloff 2013-12-08 08:42:29 UTC
Created attachment 90447 [details]
/var/log/Xorg.0.log
Comment 6 Kai 2013-12-08 14:31:44 UTC
Comment on attachment 90433 [details]
dmesg output for DRM/radeon

I think I've to withdraw my "me too". I certainly did see this in the past, but the stack I detailed in comment 2 was wrong: I wasn't add KDE 4.11.3-2 (I hadn't restarted X). Now, really on 4.11.3-2, I'm unable to reproduce the tearing. What I've seen might have been an KWin issue then.

Sorry for the noise.
Comment 7 Thomas Rohloff 2013-12-08 15:50:35 UTC
Well, I'm seeing this with XFCE4 and fglrx is tear-free.
Comment 8 Michel Dänzer 2013-12-09 03:48:14 UTC
Does it work better with EXA instead of glamor?
Comment 9 Thomas Rohloff 2013-12-09 15:02:15 UTC
(In reply to comment #8)
> Does it work better with EXA instead of glamor?

No.
Comment 10 Michel Dänzer 2013-12-11 04:21:59 UTC
Your options right now are basically:

* Use fullscreen apps, and make sure the compositing manager unredirects
  fullscreen windows.
* Using an OpenGL compositing manager may help to avoid tearing with
  non-fullscreen apps as well.
* Use EXA with Option "EXAVSync" (but read the radeon manpage about its caveats).
Comment 11 Thomas Rohloff 2015-05-29 13:44:24 UTC
(In reply to Michel Dänzer from comment #10)
> Your options right now are basically:
> 
> * Use fullscreen apps, and make sure the compositing manager unredirects
>   fullscreen windows.
> * Using an OpenGL compositing manager may help to avoid tearing with
>   non-fullscreen apps as well.
> * Use EXA with Option "EXAVSync" (but read the radeon manpage about its
> caveats).

I'm now on LXQT with compton as compositor. The tearing is still there.
Comment 12 Michel Dänzer 2015-06-01 07:21:49 UTC
(In reply to Thomas Rohloff from comment #11)
> I'm now on LXQT with compton as compositor. The tearing is still there.

What command line parameters / configuration are you using for compton? Something like

 compton --backend glx --glx-swap-method 2 --unredir-if-possible

works well for me.

With current xf86-video-ati Git master, you can also try Option "TearFree", which should prevent tearing even without a compositing manager. Its downside is that it disables DRI page flipping ATM.
Comment 13 Thomas Rohloff 2015-10-20 11:30:29 UTC
Created attachment 119001 [details]
.compton.conf

This is my compton config file. Tearing happens with (unredirected) fullscreen apps, too.
Comment 14 Thomas Rohloff 2015-10-20 11:33:34 UTC
Added

glx-swap-method = 2

to the config. Tearing still there.
Comment 15 GitLab Migration User 2019-09-18 19:12:04 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/474.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.