Bug 12175

Summary: Xv crash if video window fully offscreen (rv280)
Product: xorg Reporter: Andrew Randrianasulu <randrik>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg.conf
none
xorg.log (EXA)
none
xorg.log (XAA) none

Description Andrew Randrianasulu 2007-08-26 21:15:35 UTC
i'm using git xserver (1.4 branch up to 37954c019afd92edbe4aaa9d6deb6efaad7bf088) and xf86-video-ati from git. Very recently i found one annoying bug in xv - if i move mplayer's window offscreen (video area fully invisible, i see only window border/decoration) server immediately crashed. Git bisect point me at:

5d044b9f74c7aa7e12f2822896fed881e2ca9d19 is first bad commit
commit 5d044b9f74c7aa7e12f2822896fed881e2ca9d19
Author: Alex Deucher <alex@botch2.(none)>
Date:   Sat Aug 25 21:03:08 2007 -0400

    RADEON: fix crtc clipping for Xv

Hwinfo:

01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 SE] (rev 01) (prog-if 00 [VGA])
        Subsystem: Hightech Information System Ltd. Excalibur 9200SE VIVO 128M
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 17
        Memory at d0000000 (32-bit, prefetchable) [size=128M]
        I/O ports at c800 [size=256]
        Memory at dfdf0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at dfdc0000 [disabled] [size=128K]
        Capabilities: [58] AGP version 2.0
        Capabilities: [50] Power Management version 2
Comment 1 Andrew Randrianasulu 2007-08-26 21:17:46 UTC
Created attachment 11286 [details]
xorg.conf
Comment 2 Andrew Randrianasulu 2007-08-30 20:08:51 UTC
Created attachment 11343 [details]
xorg.log (EXA)
Comment 3 Andrew Randrianasulu 2007-08-30 20:18:05 UTC
Created attachment 11344 [details]
xorg.log (XAA)

Ok, a bit more about this bug. It only exist if i use e16's built-in composite manager. If i don't use composite, i can move video window around and offscreen without problem.

additional info about my software:
Window/composite manager - Enlightenment 0.16.8.9
Latest (d49a60bc939c9f3e9d57c23e44263f5bb52f09fb) xf86-video-ati
Mplayer from svn (MPlayer dev-SVN-r24202-3.4.6 (C) 2000-2007 MPlayer Team)

For now, i'll just revert commit 5d044b9f74c7aa7e12f2822896fed881e2ca9d19 and will wait for proper fix. Thanks for all your hard work on this driver!
Comment 5 Alex Deucher 2007-09-22 11:19:29 UTC
I've tested and applied Michel's fix:
9109e62e3be7f96b41b534ab517fdf1baf458806
Comment 6 Andrew Randrianasulu 2007-09-24 10:31:02 UTC
thanks for fixing it! Sorry for my inactivity - I was away from my computer for last week. 

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.