LinuxSir.cn,穿越时空的Linuxsir!

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

编译内核直接支持3d??

[复制链接]
发表于 2006-8-19 20:50:51 | 显示全部楼层 |阅读模式
我是用ati m6 ly显卡


系统是debian sarge 3.1 stable
默认是用ati驱动的


内核参数配置:
  1. Processor type and features  --->

  2. [*] MTRR (Memory Type Range Register) support         

  3. Device Drivers  --->  Character devices  --->

  4. <*> /dev/agpgart (AGP Support)   
  5. <*>   Intel 440LX/BX/GX, I8xx and E7x05 chipset support   

  6. [*] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
  7.     <*>   ATI Radeo
复制代码


安装好新内核 ,ati驱动进不了桌面

改成 vesa进去,glxinfo 确显示 direct rendering :no
但是  glxglears 跑起来很快呢

  1. joey@debian:/media$ glxgears
  2. Xlib:  extension "XFree86-DRI" missing on display ":0.0".
  3. 614 frames in 5.0 seconds = 122.800 FPS
  4. 912 frames in 5.0 seconds = 182.400 FPS
  5. 798 frames in 5.0 seconds = 159.600 FPS
  6. 798 frames in 5.0 seconds = 159.600 FPS
  7. 570 frames in 5.0 seconds = 114.000 FPS
  8. 570 frames in 5.0 seconds = 114.000 FPS
复制代码



xf86config-4

  1. joey@debian:/media$ cat /etc/X11/XF86Config-4
  2. # XF86Config-4 (XFree86 X Window System server configuration file)
  3. #
  4. # This file was generated by dexconf, the Debian X Configuration tool, using
  5. # values from the debconf database.
  6. #
  7. # Edit this file with caution, and see the XF86Config-4 manual page.
  8. # (Type "man XF86Config-4" at the shell prompt.)
  9. #
  10. # This file is automatically updated on xserver-xfree86 package upgrades *only*
  11. # if it has not been modified since the last upgrade of the xserver-xfree86
  12. # package.
  13. #
  14. # If you have edited this file but would like it to be automatically updated
  15. # again, run the following commands as root:
  16. #
  17. #   cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
  18. #   md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
  19. #   dpkg-reconfigure xserver-xfree86

  20. Section "Files"
  21.         FontPath        "unix/:7100"                    # local font server
  22.         # if the local font server has problems, we can fall back on these
  23.         FontPath        "/usr/lib/X11/fonts/misc"
  24.         FontPath        "/usr/lib/X11/fonts/cyrillic"
  25.         FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
  26.         FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
  27.         FontPath        "/usr/lib/X11/fonts/Type1"
  28.         FontPath        "/usr/lib/X11/fonts/CID"
  29.         FontPath        "/usr/lib/X11/fonts/Speedo"
  30.         FontPath        "/usr/lib/X11/fonts/100dpi"
  31.         FontPath        "/usr/lib/X11/fonts/75dpi"
  32. EndSection

  33. Section "Module"
  34.         Load    "GLcore"
  35.         Load    "bitmap"
  36.         Load    "dbe"
  37.         Load    "ddc"
  38.         Load    "dri"
  39.         Load    "extmod"
  40.         Load    "freetype"
  41.         Load    "glx"
  42.         Load    "int10"
  43.         Load    "record"
  44.         Load    "speedo"
  45.         Load    "type1"
  46.         Load    "vbe"
  47. EndSection

  48. Section "InputDevice"
  49.         Identifier      "Generic Keyboard"
  50.         Driver          "keyboard"
  51.         Option          "CoreKeyboard"
  52.         Option          "XkbRules"      "xfree86"
  53.         Option          "XkbModel"      "pc104"
  54.         Option          "XkbLayout"     "us"
  55. EndSection

  56. Section "InputDevice"
  57.         Identifier      "Configured Mouse"
  58.         Driver          "mouse"
  59.         Option          "CorePointer"
  60.         Option          "Device"                "/dev/input/mice"
  61.         Option          "Protocol"              "ImPS/2"
  62.         Option          "Emulate3Buttons"       "true"
  63.         Option          "ZAxisMapping"          "4 5"
  64. EndSection

  65. Section "Device"
  66.         Identifier      "ATI Technologies, Inc. Radeon Mobility M6 LY"
  67.         Driver          "vesa"
  68.         Option          "UseFBDev"              "true"
  69. EndSection

  70. Section "Monitor"
  71.         Identifier      "Generic Monitor"
  72.         HorizSync       28-50
  73.         VertRefresh     43-75
  74.         Option          "DPMS"
  75. EndSection

  76. Section "Screen"
  77.         Identifier      "Default Screen"
  78.         Device          "ATI Technologies, Inc. Radeon Mobility M6 LY"
  79.         Monitor         "Generic Monitor"
  80.         DefaultDepth    24
  81.         SubSection "Display"
  82.                 Depth           1
  83.                 Modes           "1024x768" "800x600"
  84.         EndSubSection
  85.         SubSection "Display"
  86.                 Depth           4
  87.                 Modes           "1024x768" "800x600"
  88.         EndSubSection
  89.         SubSection "Display"
  90.                 Depth           8
  91.                 Modes           "1024x768" "800x600"
  92.         EndSubSection
  93.         SubSection "Display"
  94.                 Depth           15
  95.                 Modes           "1024x768" "800x600"
  96.         EndSubSection
  97.         SubSection "Display"
  98.                 Depth           16
  99.                 Modes           "1024x768" "800x600"
  100.         EndSubSection
  101.         SubSection "Display"
  102.                 Depth           24
  103.                 Modes           "1024x768" "800x600"
  104.         EndSubSection
  105. EndSection

  106. Section "ServerLayout"
  107.         Identifier      "Default Layout"
  108.         Screen          "Default Screen"
  109.         InputDevice     "Generic Keyboard"
  110.         InputDevice     "Configured Mouse"
  111. EndSection

  112. Section "DRI"
  113.         Mode    0666
  114. EndSection
复制代码
发表于 2006-8-19 21:26:54 | 显示全部楼层
不推荐这么做。
用xorg的驱动。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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