Announcement

Collapse
No announcement yet.

Compiz Running With Mesa On R600/700 GPUs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #71
    Originally posted by Louise View Post
    Cool!

    What happens if you play a movie with xv and then with "mplayer -vo gl2" ?
    Slow movie And a message; **** Your system is too SLOW to play this! ***
    Audio is perfect.

    Code:
    $ mplayer  -vo gl2 download.ts 
    MPlayer UNKNOWN-4.4.0 (C) 2000-2009 MPlayer Team
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    
    Playing download.ts.
    TS file format detected.
    VIDEO MPEG2(pid=513) AUDIO MPA(pid=660) NO SUBS (yet)!  PROGRAM N. 33
    VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  8400.0 kbps (1050.0 kbyte/s)
    ==========================================================================
    Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
    VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    VDecoder init failed :(
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Unsupported PixelFormat -1
    Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
    Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
    ==========================================================================
    AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
    Starting playback...
    VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    [swscaler @ 0x7fb6cbe98680]using unscaled yuv420p -> bgr24 special converter
    VO: [gl2] 720x576 => 1024x576 BGR 24-bit 
    IRQ's not enabled, falling back to busy waits: 2 16
    [gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
    [gl2] antialiasing off
    [gl2] bilinear linear
    New_Face failed. Maybe the font path is wrong./  3 ??% ??% ??,?% 2 0 
    Please supply the text font file (~/.mplayer/subfont.ttf).
    subtitle font: load_sub_face failed.
    New_Face failed. Maybe the font path is wrong.
    Please supply the text font file (~/.mplayer/subfont.ttf).
    subtitle font: load_sub_face failed.
    A:42917.0 V:42909.6 A-V:  7.396 ct: -0.200  51/ 51 24% 474%  3.6% 50 0 
    
               ************************************************
               **** Your system is too SLOW to play this!  ****
               ************************************************
    
    Possible reasons, problems, workarounds:
    - Most common: broken/buggy _audio_ driver
      - Try -ao sdl or use the OSS emulation of ALSA.
      - Experiment with different values for -autosync, 30 is a good start.
    - Slow video output
      - Try a different -vo driver (-vo help for a list) or try -framedrop!
    - Slow CPU
      - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
        e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
    - Broken file
      - Try various combinations of -nobps -ni -forceidx -mc 0.
    - Slow media (NFS/SMB mounts, DVD, VCD etc)
      - Try -cache 8192.
    - Are you using -cache to play a non-interleaved AVI file?
      - Try -nocache.
    Read DOCS/HTML/en/video.html for tuning/speedup tips.
    If none of this helps you, read DOCS/HTML/en/bugreports.html.
    
    A:42976.0 V:42921.4 A-V: 54.691 ct: -0.468 345/345  8% 489%  3.3% 344 0 
    
    MPlayer interrupted by signal 2 in module: decode_audio
    A:42976.2 V:42921.4 A-V: 54.852 ct: -0.468 346/346  8% 489%  3.3% 345 0 
    Exiting... (Quit)
    Last edited by jjjj; 04 August 2009, 12:27 PM.

    Comment


    • #72
      I'm using the ebuilds from the x11 overlay (modified to grab agd5f's versions and the correct branches) and everything seems to work ok: 43 fps in glxgears and 2 fps in mplayer -vo gl (fullscreen) :P

      I just get this:
      Code:
      $ glxgears 
      IRQ's not enabled, falling back to busy waits: 2 16
      213 frames in 5.0 seconds = 42.487 FPS
      when running glxgears but I've seen other people with the same message, so I assume it's normal. There is also some random flickering/noise in the glxgears window.

      Comment


      • #73
        Originally posted by Fran View Post
        I'm using the ebuilds from the x11 overlay (modified to grab agd5f's versions and the correct branches) and everything seems to work ok: 43 fps in glxgears and 2 fps in mplayer -vo gl (fullscreen) :P

        I just get this:
        Code:
        $ glxgears 
        IRQ's not enabled, falling back to busy waits: 2 16
        213 frames in 5.0 seconds = 42.487 FPS
        when running glxgears but I've seen other people with the same message, so I assume it's normal. There is also some random flickering/noise in the glxgears window.
        Could you post that ebuild? I know a little bit about writing ebuilds, but I'd probably mess it up.

        I know I could change the Git uri, but where did you put the branch change? src_configure()? Can't remember the function's name off the top of my head right now.

        Also, which ebuild is it? libdrm?

        Comment


        • #74
          Originally posted by pvtcupcakes View Post
          Could you post that ebuild? I know a little bit about writing ebuilds, but I'd probably mess it up.

          I know I could change the Git uri, but where did you put the branch change? src_configure()? Can't remember the function's name off the top of my head right now.

          Also, which ebuild is it? libdrm?
          You have to modify x11-drm (the in-kernel version doesn't work) and libdrm. In both cases you have to add
          Code:
          EGIT_BRANCH="r6xx-r7xx-3d"
          BEFORE the inherit line (actually I don't know if this is true, but I had some ebuilds fail to use the correct branch some time ago when I put it after the inherit line). Also you need to change the EGIT_REPO_URI in both ebuilds to
          Code:
          EGIT_REPO_URI="git://anongit.freedesktop.org/~agd5f/drm"
          For mesa and xf86-video-ati you can use the 9999 versions in the x11 overlay untouched, I suppose. I just modified the mesa ebuild to build only the r600 part (instead of r200, r300, etc).

          This is the diff for the three ebuilds:
          Code:
          diff -ru layman/x11/media-libs/mesa/mesa-9999.ebuild overlay/media-libs/mesa/mesa-9999.ebuild
          --- layman/x11/media-libs/mesa/mesa-9999.ebuild	2009-08-04 21:34:00.287907108 +0200
          +++ overlay/media-libs/mesa/mesa-9999.ebuild	2009-08-04 19:19:22.047374703 +0200
          @@ -127,8 +127,8 @@
           	driver_enable video_cards_mga mga
           	driver_enable video_cards_r128 r128
           	# ATI has two implementations as video_cards
          -	driver_enable video_cards_radeon radeon r200 r300 r600
          -	driver_enable video_cards_radeonhd r300 r600
          +	driver_enable video_cards_radeon r600
          +	driver_enable video_cards_radeonhd r600
           	driver_enable video_cards_s3virge s3v
           	driver_enable video_cards_savage savage
           	driver_enable video_cards_sis sis
          diff -ru layman/x11/x11-base/x11-drm/x11-drm-99999999.ebuild overlay/x11-base/x11-drm/x11-drm-99999999.ebuild
          --- layman/x11/x11-base/x11-drm/x11-drm-99999999.ebuild	2009-08-04 21:34:00.300961547 +0200
          +++ overlay/x11-base/x11-drm/x11-drm-99999999.ebuild	2009-08-04 19:41:11.532221627 +0200
          @@ -1,10 +1,11 @@
           # Copyright 1999-2009 Gentoo Foundation
           # Distributed under the terms of the GNU General Public License v2
           # $Header: /var/cvsroot/gentoo-x86/x11-base/x11-drm/x11-drm-20070314.ebuild,v 1.2 2007/03/14 18:18:53 battousai Exp $
          +EGIT_BRANCH="r6xx-r7xx-3d"
           
           EAPI="2"
           
          -EGIT_REPO_URI="git://anongit.freedesktop.org/git/mesa/drm"
          +EGIT_REPO_URI="git://anongit.freedesktop.org/~agd5f/drm"
           EGIT_PROJECT="libdrm"
           
           [[ ${PV} = 9999* ]] && GIT_ECLASS="git"
          diff -ru layman/x11/x11-libs/libdrm/libdrm-9999.ebuild overlay/x11-libs/libdrm/libdrm-9999.ebuild
          --- layman/x11/x11-libs/libdrm/libdrm-9999.ebuild	2009-08-04 21:34:00.327906972 +0200
          +++ overlay/x11-libs/libdrm/libdrm-9999.ebuild	2009-08-04 19:15:18.903550228 +0200
          @@ -4,10 +4,11 @@
           
           # Must be before x-modular eclass is inherited
           #SNAPSHOT="yes"
          +EGIT_BRANCH="r6xx-r7xx-3d"
           
           inherit autotools x-modular
           
          -EGIT_REPO_URI="git://anongit.freedesktop.org/git/mesa/drm"
          +EGIT_REPO_URI="git://anongit.freedesktop.org/~agd5f/drm"
           
           DESCRIPTION="X.Org libdrm library"
           HOMEPAGE="http://dri.freedesktop.org/"
          @@ -20,7 +21,7 @@
           DEPEND="${RDEPEND}"
           RESTRICT="test" # see bug #236845
           
          -CONFIGURE_OPTIONS="--enable-udev --enable-nouveau-experimental-api --enable-radeon-experimental-api"
          +#CONFIGURE_OPTIONS="--enable-udev --enable-radeon-experimental-api"
           
           pkg_postinst() {
           	x-modular_pkg_postinst
          HTH

          Comment


          • #75
            Libdrm from fdo git master should be fine, just change the x11-drm.

            Comment


            • #76
              Originally posted by jjjj View Post
              Slow movie And a message; **** Your system is too SLOW to play this! ***
              Audio is perfect.

              Code:
              [gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
              So playing video with OpenGL only requires OpenGL 1.2?

              I am satisfied

              Comment


              • #77
                I installed it, and according to Xorg.0.log everything loads beautifully (including r600_dri.o), however glxgears still works as before (~550 fps, still looks software rendered) and I see no trace of 3D acceleration at all. Any help?
                kernel: 2.6.30

                [edit] The following line appears on the log, not sure if it has anything to do with it:
                (II) AIGLX: Screen 0 is not DRI2 capable


                That said, I'd like to thank everyone envolved in the development of this drivers! I'm really looking forward to see this thing kicking butt in the future
                Last edited by mdias; 04 August 2009, 06:06 PM.

                Comment


                • #78
                  Originally posted by mdias View Post
                  I installed it, and according to Xorg.0.log everything loads beautifully (including r600_dri.o), however glxgears still works as before (~550 fps, still looks software rendered) and I see no trace of 3D acceleration at all. Any help?
                  kernel: 2.6.30
                  I can tell which you use by
                  Code:
                  [root@amd ~]# glxinfo |grep -i opengl
                  OpenGL vendor string: ATI Technologies Inc.
                  OpenGL renderer string: ATI Radeon HD 3200 Graphics
                  OpenGL version string: 2.1.8543 Release
                  OpenGL shading language version string: 1.20
                  OpenGL extensions:
                  [root@amd ~]#
                  You can see that I use the Catalyst drivers here. If it says something about "DRI" you use Open Source.

                  Comment


                  • #79
                    Originally posted by Fran View Post
                    You have to modify x11-drm (the in-kernel version doesn't work) and libdrm. In both cases you have to add
                    Code:
                    EGIT_BRANCH="r6xx-r7xx-3d"
                    BEFORE the inherit line (actually I don't know if this is true, but I had some ebuilds fail to use the correct branch some time ago when I put it after the inherit line). Also you need to change the EGIT_REPO_URI in both ebuilds to
                    Code:
                    EGIT_REPO_URI="git://anongit.freedesktop.org/~agd5f/drm"
                    For mesa and xf86-video-ati you can use the 9999 versions in the x11 overlay untouched, I suppose. I just modified the mesa ebuild to build only the r600 part (instead of r200, r300, etc).

                    *patch*

                    HTH
                    Thanks. That patch was really convenient once I realized that the x11 overlay is just a git repo.

                    Comment


                    • #80
                      Originally posted by Louise View Post
                      I can tell which you use by
                      Code:
                      [root@amd ~]# glxinfo |grep -i opengl
                      OpenGL vendor string: ATI Technologies Inc.
                      OpenGL renderer string: ATI Radeon HD 3200 Graphics
                      OpenGL version string: 2.1.8543 Release
                      OpenGL shading language version string: 1.20
                      OpenGL extensions:
                      [root@amd ~]#
                      You can see that I use the Catalyst drivers here. If it says something about "DRI" you use Open Source.
                      Thank you for the tip.
                      It is as I thought, I'm using the Software Rasterizer
                      Code:
                      OpenGL vendor string: Mesa Project
                      OpenGL renderer string: Software Rasterizer
                      OpenGL version string: 2.1 Mesa 7.5
                      OpenGL shading language version string: 1.20
                      OpenGL extensions:
                      I can't seem to find why though... Xorg.0.log shows no errors at all, it loads the DRM driver just fine.
                      I have a 3870 btw...

                      Comment

                      Working...
                      X