Bug 17997

Summary: XVideo present, but unusable.
Product: xorg Reporter: Gian Paolo Mureddu <gmureddu>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED NOTOURBUG QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.4 (2008.09)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Gian Paolo Mureddu 2008-10-09 23:06:43 UTC
Using Xorg-video-ati from both GIT and release 6.9.0 built from source with Xorg 7.4/XServer 1.5.0

xvinfo shows that XV is present and usable, however, any program that makes use of XVideo (Xine, for instance) crashes with the message:

X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  140 (XVideo)
  Minor opcode of failed request:  19 ()
  Serial number of failed request:  2307
  Current serial number in output stream:  2308

xvinfo shows:

X-Video Extension version 2.2
screen #0
  Adaptor #0: "Radeon Textured Video"
    number of ports: 16
    port base: 57
    operations supported: PutImage 
    supported visuals:
      depth 24, visualID 0x21
    no port attributes defined
    maximum XvImage size: 2048 x 2048
    Number of image formats: 4
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)

Just to reiterate that this happens with both GIT and release versions of Xorg-video-ati driver, and that the hardware is an RS690M based X1200 Radeon in my laptop. Using X11 SHM driver on any video player works just fine, though with the degraded performance you might expect from it in fullscreen.
Comment 1 Alex Deucher 2008-10-09 23:19:33 UTC
This is actually a limitation of XAA when used with the composite extension.  Switch to EXA and all will be well.
Option "AccelMethod" "EXA"
Comment 2 Gian Paolo Mureddu 2008-10-09 23:23:26 UTC
(In reply to comment #1)
> This is actually a limitation of XAA when used with the composite extension. 
> Switch to EXA and all will be well.
> Option "AccelMethod" "EXA"
> 

There is a problem, though... I'm having problems with EXA crashing the XServer (see bug http://bugs.freedesktop.org/show_bug.cgi?id=17996)
Comment 3 Alex Deucher 2008-10-09 23:31:08 UTC
The other option is to use XAA, but not use composite.
Comment 4 Gian Paolo Mureddu 2008-10-09 23:38:49 UTC
I see... Even though I'm not using Compiz or AIGLX in any way, I am using Metacity as composite manager... Thanks for the suggestion.

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.