Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tearing Still Visible with DRI2 [FIXED!!!]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Sat Jan 31, 2009 7:32 pm    Post subject: Tearing Still Visible with DRI2 [FIXED!!!] Reply with quote

Does anyone know how to get tearing to stop? I'm on a ThinkPad T400 with an Intel 4500MHD. I'm running Linux 2.6.28.1, X Server 1.6 RC2, Intel's XF86 Driver 2.6.1.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.


Last edited by wswartzendruber on Thu Jun 04, 2009 12:20 am; edited 1 time in total
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Sun Feb 01, 2009 11:27 am    Post subject: Reply with quote

Where did you get that recent x.org from? From which overlay?
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Sun Feb 01, 2009 12:17 pm    Post subject: Reply with quote

Phlogiston wrote:
Where did you get that recent x.org from? From which overlay?

x11
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
psych
n00b
n00b


Joined: 02 Sep 2006
Posts: 29

PostPosted: Sun Feb 01, 2009 2:42 pm    Post subject: Reply with quote

You switched from EXA to UXA?
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Sun Feb 01, 2009 6:04 pm    Post subject: Reply with quote

psych wrote:
You switched from EXA to UXA?

Yes. DRIConf won't work, either.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
jut24
n00b
n00b


Joined: 14 Nov 2007
Posts: 20

PostPosted: Mon Feb 09, 2009 1:16 pm    Post subject: dri2 tearing Reply with quote

Hi,
Not sure if you solved the issue I have an intel 945gm and it use to tear but then I put these options in my xorg.conf and the tearing stopped.
Section Device
Option "DRI" "True"
Option "AccelMethod" "uxa"
Option "RenderAccel" "True"
Option "TripleBuffer" "true"
Option "EnablePageFlip" "true"
Option "PageFlip" "True"
Option "MigrationHeuristic" "greedy"
Option Tiling" "No"


Jut24
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Mon Feb 09, 2009 1:36 pm    Post subject: Re: dri2 tearing Reply with quote

jut24 wrote:
Hi,
Not sure if you solved the issue I have an intel 945gm and it use to tear but then I put these options in my xorg.conf and the tearing stopped.
Section Device
Option "DRI" "True"
Option "AccelMethod" "uxa"
Option "RenderAccel" "True"
Option "TripleBuffer" "true"
Option "EnablePageFlip" "true"
Option "PageFlip" "True"
Option "MigrationHeuristic" "greedy"
Option Tiling" "No"


Jut24

Sorry man. Still tears. I appreciate the effort, though.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
Need4Speed
Guru
Guru


Joined: 06 Jun 2004
Posts: 497

PostPosted: Tue Feb 10, 2009 3:01 am    Post subject: Reply with quote

Take a look at this thread for some more information on the tearing problem: http://www.phoronix.com/forums/showthread.php?t=14696&page=3
It seems that sync-to-vblank is not working quite right with UXA acceleration at the moment. You can either use EXA plus GL output or use UXA and the hardware overlay (take a look at xvinfo, this is what i use). I think compiz can also prevent tearing with some sync option.
_________________
2.6.34-rc3 on x86_64 w/ paludis
WM: ratpoison
Term: urxvt, zsh
Browser: uzbl
Email: mutt, offlineimap
IRC: weechat
News: newsbeuter
PDF: apvlv
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Tue Feb 10, 2009 3:15 am    Post subject: Reply with quote

Need4Speed wrote:
Take a look at this thread for some more information on the tearing problem: http://www.phoronix.com/forums/showthread.php?t=14696&page=3
It seems that sync-to-vblank is not working quite right with UXA acceleration at the moment. You can either use EXA plus GL output or use UXA and the hardware overlay (take a look at xvinfo, this is what i use). I think compiz can also prevent tearing with some sync option.

I've already posted a few times in that thread. But thanks. :lol:

Anyway, Keith Packard (Intel graphics developer) was quoted as saying that vblank'd swaps for DRI2 are a must this year. In other words, it sounds like they haven't even started yet.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
Bakou
n00b
n00b


Joined: 05 Feb 2007
Posts: 42

PostPosted: Thu Mar 19, 2009 10:48 pm    Post subject: Reply with quote

Personally I've noticed that with EXA vsync seems enabled right away and never tears.. but then it forces you to load DRI1
UXA with DRI2 definately doesn't seem to like vsync..

btw as a side note do you have direct rendering in compiz working?
_________________
--Laptop--
ThinkPad T500 Gentoo

--Desktop--
Intel Core Duo E6420 (8x333)
3 GB PC6400 DDR2 825mhz 4-4-4-15
nVidia 8800GT
Creative X-Fi (works in Gentoo)
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Thu Mar 26, 2009 1:57 pm    Post subject: Reply with quote

Bakou wrote:
Personally I've noticed that with EXA vsync seems enabled right away and never tears.. but then it forces you to load DRI1
UXA with DRI2 definately doesn't seem to like vsync..

btw as a side note do you have direct rendering in compiz working?

Had them working while I was using Compiz.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Sun Apr 19, 2009 9:10 pm    Post subject: Reply with quote

Talked to some people on IRC and it seems the problem is that UXA doesn't really work well with triple buffering yet. Unfortunately, triple buffering is a requirement for UXA, which is in turn a requirement for DRI2. With Compiz configured to do direct rendering, I can see one tear line that slowly progresses down the screen from top to bottom. This is has been identified as an issue in xf86-video-intel and not anywhere else. As far as I know, it is still present in xf86-video-intel-2.7.0.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
gionnico
Apprentice
Apprentice


Joined: 29 Jun 2007
Posts: 192
Location: Italy

PostPosted: Tue Jun 02, 2009 9:27 am    Post subject: Reply with quote

I heard that GEM support was backported to EXA and UXA was abandoned. Is it so?
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1700
Location: Poland => Lodz

PostPosted: Tue Jun 02, 2009 9:57 am    Post subject: Reply with quote

No, but EXA has been ripped out of the intel drivers.

wswartzendruber, try upgrading your intel driver. Actually 9999 is stable (not really or quite, it's just stable) for me (but didn't solve the performance issues that I have....).
Back to top
View user's profile Send private message
Need4Speed
Guru
Guru


Joined: 06 Jun 2004
Posts: 497

PostPosted: Wed Jun 03, 2009 4:12 pm    Post subject: Reply with quote

Just an update on the tearing issue. As of yesterday, the latest git contains patches that should fix xv tearing in all cases. I'm using KMS and a compositing window manager and my video is finally tear-free! 8)
_________________
2.6.34-rc3 on x86_64 w/ paludis
WM: ratpoison
Term: urxvt, zsh
Browser: uzbl
Email: mutt, offlineimap
IRC: weechat
News: newsbeuter
PDF: apvlv
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Wed Jun 03, 2009 4:32 pm    Post subject: Reply with quote

Need4Speed wrote:
Just an update on the tearing issue. As of yesterday, the latest git contains patches that should fix xv tearing in all cases. I'm using KMS and a compositing window manager and my video is finally tear-free! 8)

If you're running Compiz or something similar and Xv is tear-free, so should everything else as well. Can you confirm this? Do you see in tears when you move windows around?
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
Need4Speed
Guru
Guru


Joined: 06 Jun 2004
Posts: 497

PostPosted: Wed Jun 03, 2009 7:24 pm    Post subject: Reply with quote

wswartzendruber wrote:
Need4Speed wrote:
Just an update on the tearing issue. As of yesterday, the latest git contains patches that should fix xv tearing in all cases. I'm using KMS and a compositing window manager and my video is finally tear-free! 8)

If you're running Compiz or something similar and Xv is tear-free, so should everything else as well. Can you confirm this? Do you see in tears when you move windows around?

I use cairo-compmgr with the Xrender backend, so I don't have any kind of general vsync turned on. If I move windows at the right speed I can see a little tearing, however, there is no tearing with video (in a stationary window).

This is the commit that fixed composited video for me: http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=ec2fde7c8250fdc30984f16c8a1d3587d70b0144
_________________
2.6.34-rc3 on x86_64 w/ paludis
WM: ratpoison
Term: urxvt, zsh
Browser: uzbl
Email: mutt, offlineimap
IRC: weechat
News: newsbeuter
PDF: apvlv
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Wed Jun 03, 2009 9:01 pm    Post subject: Reply with quote

But I'm talking about DRI2 compositing, which used to tear. Now, NOTHING on my screen tears. It's just like Vista's Aero interface and Mac OS X.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
Need4Speed
Guru
Guru


Joined: 06 Jun 2004
Posts: 497

PostPosted: Wed Jun 03, 2009 10:15 pm    Post subject: Reply with quote

wswartzendruber wrote:
But I'm talking about DRI2 compositing, which used to tear. Now, NOTHING on my screen tears. It's just like Vista's Aero interface and Mac OS X.


Yeah you're right; some compositing window managers will have a vsync option that will prevent ALL tearing (video and moving windows). I could have enabled this option, but it is currently not working properly in cairo-compmgr.

Intel's new fix for tearing in composited video is different and independent of the compositing window manager's vsync option. I can now have tear-free composited video without even using the window manager's vsync option.
_________________
2.6.34-rc3 on x86_64 w/ paludis
WM: ratpoison
Term: urxvt, zsh
Browser: uzbl
Email: mutt, offlineimap
IRC: weechat
News: newsbeuter
PDF: apvlv
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1700
Location: Poland => Lodz

PostPosted: Wed Jun 03, 2009 10:58 pm    Post subject: Reply with quote

You can just enable vsync globally using driconf.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Thu Jun 04, 2009 12:20 am    Post subject: Reply with quote

Need4Speed wrote:
wswartzendruber wrote:
But I'm talking about DRI2 compositing, which used to tear. Now, NOTHING on my screen tears. It's just like Vista's Aero interface and Mac OS X.


Yeah you're right; some compositing window managers will have a vsync option that will prevent ALL tearing (video and moving windows). I could have enabled this option, but it is currently not working properly in cairo-compmgr.

Intel's new fix for tearing in composited video is different and independent of the compositing window manager's vsync option. I can now have tear-free composited video without even using the window manager's vsync option.

No man, everything tore regardless. Now, the vsync setting actually works.

And I don't think driconf applies to DRI2.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Fri Jun 05, 2009 8:42 pm    Post subject: Reply with quote

Okay, I see what someone else meant by performance regression. The Compiz cube doesn't spin anymore.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum