Bug 82118

Summary: nouveau tearing with xvideo
Product: xorg Reporter: lameventanas
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: lameventanas
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description lameventanas 2014-08-04 06:49:51 UTC
I have terrible tearing when using mplayer -vo xv in my htpc system.

A description of my system:
- Nvidia GeForce 9400 (rev b1) pci-id: 10de:086a
- HDMI port connected to a TV
- linux 3.15.0
- xorg-xf86-video-nouveau 1.0.10
- xorg-server 1.14.15
- mplayer 2014-02-06

There is no window manager.

Things I have tried without success:
1. In xorg.conf, section "Device": option "GLXVBlank" "true"
2. In xorg.conf, section "Extensions": option "Composite" "disable"
3. In xorg.conf, section "Extensions": option "RENDER" "disable"

xvinfo:
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Intel(R) Textured Video"
    number of ports: 16
    port base: 89
    operations supported: PutImage 
    supported visuals:
      depth 24, visualID 0x21
    no port attributes defined
    maximum XvImage size: 2048 x 2048
    Number of image formats: 5
      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)
      id: 0x434d5658 (XVMC)
        guid: 58564d43-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
Comment 1 Ilia Mirkin 2014-11-20 20:40:32 UTC
I believe recent changes to the ddx and kernel have improved this. Please update to xf86-video-nouveau 1.0.11 and kernel 3.17.x and retest. GLXVBlank defaults to true now, I believe.

However it's at least a little odd that xvinfo is returning Adaptor #0: "Intel(R) Textured Video" -- nouveau returns different strings. Perhaps you ran xvinfo on the wrong screen?
Comment 2 lameventanas 2014-11-21 11:54:24 UTC
(In reply to Ilia Mirkin from comment #1)
> I believe recent changes to the ddx and kernel have improved this. Please
> update to xf86-video-nouveau 1.0.11 and kernel 3.17.x and retest. GLXVBlank
> defaults to true now, I believe.
> 
> However it's at least a little odd that xvinfo is returning Adaptor #0:
> "Intel(R) Textured Video" -- nouveau returns different strings. Perhaps you
> ran xvinfo on the wrong screen?

Thanks, that is great news, but I'm having other problems with Xvideo (bug 51579), so it is hard to test at the moment (and I haven't updated to kernel 3.17.x yet).

Yes, the xvinfo is from the wrong screen, product of ssh + automatic x11 forwarding (I love that feature).

Here is the correct information, in case it helps:

X-Video Extension version 2.2
screen #0
  Adaptor #0: "Nouveau GeForce 8/9 Textured Video"
    number of ports: 32
    port base: 63
    operations supported: PutImage 
    supported visuals:
      depth 24, visualID 0x21
      depth 24, visualID 0x22
    number of attributes: 7
      "XV_SET_DEFAULTS" (range 0 to 0)
              client settable attribute
      "XV_SYNC_TO_VBLANK" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_BRIGHTNESS" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_SATURATION" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_HUE" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_ITURBT_709" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 0)
    maximum XvImage size: 8192 x 8192
    Number of image formats: 4
      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: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
Comment 3 Martin Peres 2019-12-04 08:47:55 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/125.

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.