You are not logged in.

#1 2011-10-31 03:00:16

Chrys349
Member
From: Romania
Registered: 2011-09-04
Posts: 50

screen tearing on video playback with mplayer and radeon driver

I use a old Radeon 9200 video card with the open source radeon driver, and after I configured the radeon driver to fix the screen tearing, it still has screen tearing

this is the xorg.conf:

Section "Device"
       Identifier  "My Graphics Card"
       Driver      "radeon"
       Option      "DRI" "on"
       Option      "DynamicPM" "on"      
       Option      "ClockGating" "on"    
       Option      "AccelMethod" "EXA"   
       Option      "EXAVSync" "on"       
       Option      "DMAForXv" "on"       
       Option      "ScalerWidth" "2048"  
       Option      "EnablePageFlip" "on" 
       Option      "RenderAccel" "on"   
       Option      "AccelDFS" "on"       

       Option      "AGPMode" "4"
       Option      "ColorTiling" "on"
       Option      "AGPFastWrite" "yes"

       BusID       "PCI:1:0:0"
EndSection

and this is the ~/.mplayer/conf:

vo=xv
ao=alsa
mixer-channel=Master
nolirc=yes
nojoystick=yes
font=Arial
subcp=latin2
subpos=95

and I know that this video card is capable of playback without screen tearing, because if I boot windows xp and open any video file with VLC, there is no screen tearing

Last edited by Chrys349 (2011-10-31 03:03:06)

Offline

#2 2011-10-31 10:19:35

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: screen tearing on video playback with mplayer and radeon driver

Try disabling your compositor if you use one, or setting it to synchronize with the VBL.

Offline

#3 2011-10-31 10:54:13

electric_indigo
Member
Registered: 2011-05-12
Posts: 89

Re: screen tearing on video playback with mplayer and radeon driver

I have a Radeon 9250. Here is my setup:

Section	"Device"
	Identifier	"Radeon 9250"
	Driver		"radeon"
	Option	"EXAVSync" 		"false"
	Option	"ColorTiling"		"true"
	Option	"EXAPixmaps" 		"true"
	Option	"MigrationHeuristic"	"greedy"
	Option	"SwapBuffersWait"	"true"
	Option	"TripleBuffer"		"true"
	Option	"EnablePageFlip"	"true"
	Option	"AGPMode"			"8"
	Option	"AGPFastWrite"		"false"
	Option	"BusType"			"AGP"
	Option	"DisplayPriority"	"AUTO"
	Option	"IgnoreEDID"		"false"
	Option	"RenderAccel"		"true"
	Option	"AccelMethod"		"EXA"
	Option	"AccelDFS"			"true"
	Option	"FBTexPercent"		"0"
	Option	"DMSForXv"			"true"
	Option	"SubPixelOrder"		"NONE"
	Option	"VGAAccess"			"false"
	Option	"DRI"				"true"
	Option	"XV_VSYNC"			"true"
	Option	"XV_CRTC"			"auto"
	Option	"XV_BICUBIC"		"false"
EndSection

I'm glad with the video quality, however, I do experience little tearing sometimes, especially in the scenes involving panning.
The XV_VSYNC option is supposed to eliminate tearing (due to the radeon manual), but it is ignored if KMS is enabled. Try disabling KMS if you don't mind some performance reduction. The Radeon driver generally has some annoying bugs and glitches in KMS mode.

Offline

#4 2011-10-31 10:55:18

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: screen tearing on video playback with mplayer and radeon driver

What does the following command reveal?

glxinfo | grep render

http://dri.freedesktop.org/wiki/glxinfo

Offline

Board footer

Powered by FluxBB