Tearing video on Sandy Bridge
Hi,
the tearing video issue with XV output seemed to be fixed on my old computer with i945 graphics at some point. Last year I upgraded to a box with i5-2400, and got bitten again by tearing video. Currently I use kernel 3.4-rc5, Xserver 1.12 and xorg-intel 2.18. I use gnome3 and gnome-shell on my desktop, and tried several players (mplayer, vlc, mythtv).
Am I just doing something wrong, or is smooth video playback not the scope of the Sandy Bridge development?
Regards,
Tino
Quoted 11 lines · On Thu, May 03, 2012 at 08:09:09PM +0200, [email protected] wrote:
Hi,
the tearing video issue with XV output seemed to be fixed on my old computer with i945 graphics at some point. Last year I upgraded to a box with i5-2400, and got bitten again by tearing video. Currently I use kernel 3.4-rc5, Xserver 1.12 and xorg-intel 2.18. I use gnome3 and gnome-shell on my desktop, and tried several players (mplayer, vlc, mythtv).
Am I just doing something wrong, or is smooth video playback not the scope of the Sandy Bridge development?
We used scanline waits embedded in the gpu command stream to achieve tear-free video. On snb hw designers killed that feature :(
The only way to get tear-free screen updates on snb is with pageflips, which requires a opengl compositor (and wayland if you have more than one screen).
-Daniel
Signature · 3 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48
On Thu, May 03, 2012 at 20:43:01 +0200, Daniel Vetter wrote:
[...]
Quoted 2 lines
The only way to get tear-free screen updates on snb is with pageflips, which requires a opengl compositor
Thanks. What do you mean with "opengl compositor"? Isn't the Gnome3 desktop providing this?
Regards,
Tino
Quoted 9 lines · Tino Keitel
On Thu, May 03, 2012 at 20:43:01 +0200, Daniel Vetter wrote:
[...]
Quoted 2 lines
The only way to get tear-free screen updates on snb is with pageflips, which requires a opengl compositor
Thanks. What do you mean with "opengl compositor"? Isn't the Gnome3 desktop providing this?
Well, it needs to do vsync'ed updates, and to work correctly, the client also needs to do dri2 buffer swaps. Dunno where to set the former in gnome 3, for the later try a opengl output plugin (or libva). -Daniel
Signature · 3 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48
Quoted 5 lines · Daniel Vetter
Quoted 4 lines · Tino Keitel
On Thu, May 03, 2012 at 20:43:01 +0200, Daniel Vetter wrote:
[...]
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
The only way to get tear-free screen updates on snb is with pageflips, which requires a opengl compositor
Thanks. What do you mean with "opengl compositor"? Isn't the Gnome3 desktop providing this?
Well, it needs to do vsync'ed updates, and to work correctly, the client
Is this in the dri config file?
Regards,
Tino
Quoted 9 lines · On 05/03/2012 03:51 PM, [email protected] wrote:
Quoted 8 lines · Daniel Vetter
Quoted 7 lines · Tino Keitel
On Thu, May 03, 2012 at 20:43:01 +0200, Daniel Vetter wrote:
[...]
Quoted 2 lines
The only way to get tear-free screen updates on snb is with pageflips, which requires a opengl compositor
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Thanks. What do you mean with "opengl compositor"? Isn't the Gnome3 desktop providing this?
Well, it needs to do vsync'ed updates, and to work correctly, the client
Is this in the dri config file?
I've had tear-free video (finally!) in GNOME 3 for a while now, using the following in my ~/.xsession (and launching that from GDM instead of GNOME directly):
CLUTTER_PAINT=disable-clipped-redraws:disable-culling /etc/X11/Sessions/Gnome
You may have to adjust the "/etc/X11/Sessions/Gnome" depending on your distribution (I'm on Gentoo).
Hope that helps,
Chun-Yu
Quoted 15 lines · Chun-Yu Shei
Quoted 14 lines · On 05/03/2012 03:51 PM, [email protected] wrote:
Quoted 12 lines · Daniel Vetter
Quoted 9 lines · Tino Keitel
On Thu, May 03, 2012 at 20:43:01 +0200, Daniel Vetter wrote:
[...]
Quoted 2 lines
The only way to get tear-free screen updates on snb is with pageflips, which requires a opengl compositor
Thanks. What do you mean with "opengl compositor"? Isn't the Gnome3 desktop providing this?
Well, it needs to do vsync'ed updates, and to work correctly, the client
Quoted 8 lines
Quoted 1 line
Is this in the dri config file?
I've had tear-free video (finally!) in GNOME 3 for a while now, using the following in my ~/.xsession (and launching that from GDM instead of GNOME directly):
CLUTTER_PAINT=disable-clipped-redraws:disable-culling
/etc/X11/Sessions/Gnome
Thanks, I'll try that. When I goggled for that, I also found people using CLUTTER_VBLANK=True.
Regards,
Tino
Quoted 22 lines · On Fri, May 04, 2012 at 07:56:08 +0200, [email protected] wrote:
Quoted 21 lines · Chun-Yu Shei
Quoted 9 lines · On 05/03/2012 03:51 PM, [email protected] wrote:
Quoted 8 lines · Daniel Vetter
Quoted 7 lines · Tino Keitel
On Thu, May 03, 2012 at 20:43:01 +0200, Daniel Vetter wrote:
[...]
Quoted 2 lines
The only way to get tear-free screen updates on snb is with pageflips, which requires a opengl compositor
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Thanks. What do you mean with "opengl compositor"? Isn't the Gnome3 desktop providing this?
Well, it needs to do vsync'ed updates, and to work correctly, the client
Is this in the dri config file?
I've had tear-free video (finally!) in GNOME 3 for a while now, using the following in my ~/.xsession (and launching that from GDM instead of GNOME directly):
Quoted 5 lines
Quoted 2 lines
CLUTTER_PAINT=disable-clipped-redraws:disable-culling
/etc/X11/Sessions/GnomeThanks, I'll try that. When I goggled for that, I also found people using CLUTTER_VBLANK=True.
Thanks a lot, the CLUTTER_PAINT setting did the trick. The CLUTTER_VBLANK line had no effect.
Regards,
Tino