Topic Title: tearing - cannot get vsync to work properly when rendering through VAAPI (XvBA backend)
Topic Summary: VAAPI
Created On: 01/30/2013 08:19 AM
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 01/30/2013 08:19 AM
User is offline View Users Profile Print this message

Author Icon
dhvu
Peon

Posts: 2
Joined: 01/30/2013

Hello,

I want to render tear-free VC-1 compressed live video on X11 using the linux version of Catalyst 13.1 (fglrx 9.1.11) and the XvBA backend for VA-API. The chipset is identified as "AMD Radeon HD 6250 Graphics" (Chipset = 0x9804).

For this I need to enable synchronization of frame buffer flips on the vertical sync in order to avoid tearing. However, so far I did not manage to find the correct settings for the driver to force this vsync behavior. Strangely enough, it works well when playing a pre-recorded movie. Initially I thought it could be overcome by calling vaSyncSurface() before vaBeginPicture(), but this turns out to cause some surfaces not to update properly (and insist on showing old content). I use vaPutSurface() to make the buffers flip.

I used the following xorg.conf settings (and variations of that):

OpenGLOverlay = on
OverlayOnCRTC2 = 0
Capabilities = 0x00000800
TeturedVideoSync = on 

and the following settings in /etc/ati/amdpcsdb:

EnableTearFreeDesktop=V1
VSyncControl=V3

Can anyone come up with suggestions and/or the correct set of the settings? 

Another possibly interesting fact: glxgears seem to be affected well by vsync settings, since it outputs only 60fps.

 01/30/2013 09:13 AM
User is offline View Users Profile Print this message

Author Icon
Eydee
Ninja Zombie Killer

Posts: 4872
Joined: 12/27/2008

This is the gaming forum. There is a developer forum, you might wanted to post this there.



-------------------------

CPU: AMD Phenom II X4 810 @ 3120MHz | RAM: Kingmax 2x2GB DDR2 800 @ 833MHz| MoBo: MSI K9A2 CF v1.0 (BIOS: 1.D)| GPU: Asus HD 6850 1024MB (DirectCu) @ 835/1135MHz | Display: L24FHD | PSU: PC Power & Cooling Silencer 750 Quad | OS: MS Windows 3.11 Pro x64

 01/31/2013 03:14 AM
User is offline View Users Profile Print this message

Author Icon
dhvu
Peon

Posts: 2
Joined: 01/30/2013

I will try it at http://devgurus.amd.com/community/graphics_programming .

Sorry for misposting. Thanks for your suggestion!

Statistics
84866 users are registered to the AMD Support and Game forum.
There are currently 0 users logged in.

FuseTalk Hosting Executive Plan v3.2 - © 1999-2014 FuseTalk Inc. All rights reserved.