LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1197|回复: 0

ATI显卡在Debian squeeze中使用开源驱动并开启3D

[复制链接]
发表于 2010-5-20 16:00:58 | 显示全部楼层 |阅读模式
经过屡次的尝试,终于解决了ATI显卡在Debian squeeze中使用开源驱动,启用3D加速。
显卡型号:ATI  Mobility Radeon X2300
开源驱动:radeon
需要安装firmware-linux-nonfree(关键)
radeonhd驱动貌似不如radeon好,在启动gdm时还会白屏。
使用google-earth,可以识别已开启3D加速,但运行一会就会卡住,风扇狂转,所以3D虽然开启,但性能不行。

xorg.conf如下:

Section "Module"
  Load  "glx"
  Load  "dri"
  Load  "drm"
EndSection

Section "ServerLayout"
    Identifier    "Xorg Configured"
    Screen          0  "screen0" 0 0
EndSection

Section "Extensions"
         Option  "Composite" "1"
EndSection

Section "ServerFlags"
         Option      "AIGLX"         "on"
EndSection

Section "Device"
    Identifier  "x700"
    Driver        "radeon"
    VendorName    "ATI Technologies Inc"
    BoardName    "ATI Mobility Radeon X700"
    Option          "DynamicClocks" "on"
    Option        "EnablePageFlip" "on"
        Option          "ColorTiling" "on"
        Option          "DRI" "on"
EndSection

Section "Screen"
    Identifier "screen0"
    Device     "x700"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
    #    Depth    24
    #    Modes    "1280x800"
    EndSubSection
EndSection

Section "DRI"
    Group        "video"
    Mode         0666
EndSection

Section "ServerFlags"
    Option "DontZap" "yes"
EndSection


测试效果:

$ glxgears  
6213 frames in 5.0 seconds = 1242.592 FPS
6219 frames in 5.0 seconds = 1243.622 FPS
6416 frames in 5.0 seconds = 1283.006 FPS
6429 frames in 5.0 seconds = 1285.762 FPS


查看是否开启3D:

$ glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
........................................................


查看是否开启xv:

$ xvinfo  
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Radeon Textured Video"
    number of ports: 16
    port base: 63
    operations supported: PutImage  
    supported visuals:
      depth 24, visualID 0x21
    number of attributes: 3
      "XV_BICUBIC" (range 0 to 2)
              client settable attribute
              client gettable attribute (current value is 2)
      "XV_VSYNC" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_HWPLANAR" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
    maximum XvImage size: 4096 x 4096
    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)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表