LinuxSir.cn,穿越时空的Linuxsir!

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

请教透明效果设置问题(ATI显卡)

[复制链接]
发表于 2006-4-13 19:17:44 | 显示全部楼层 |阅读模式
我的显卡是ATI9550的,装了驱动,想搞出透明阴影效果,可是老是不成功,装完驱动后,我只把
Driver                "ati"
改成了
Driver                "fglrx"
然后就有3D驱动了

今天找了资料,改了下xorg.conf
在中间Device字段加了
Option "RenderAccel"
在最后加了
Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER" "Enable"
EndSection


可是只要CompositeEnable的,3D驱动就没了,glxgears的值只有两三百
# glxinfo |grep direct  提示如下:
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect


附上xorg.conf

  1. Section "Files"
  2.         FontPath        "unix/:7100"                        # local font server
  3.         # if the local font server has problems, we can fall back on these
  4.         FontPath        "/usr/lib/X11/fonts/misc"
  5.         FontPath        "/usr/lib/X11/fonts/cyrillic"
  6.         FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
  7.         FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
  8.         FontPath        "/usr/lib/X11/fonts/Type1"
  9.         FontPath        "/usr/lib/X11/fonts/CID"
  10.         FontPath        "/usr/lib/X11/fonts/100dpi"
  11.         FontPath        "/usr/lib/X11/fonts/75dpi"
  12. EndSection

  13. Section "Module"
  14.         Load        "bitmap"
  15.         Load        "dbe"
  16.         Load        "ddc"
  17.         Load        "dri"
  18.         Load        "evdev"
  19.         Load        "extmod"
  20.         Load        "freetype"
  21.         Load        "glx"
  22.         Load        "int10"
  23.         Load        "record"
  24.         Load        "type1"
  25.         Load        "vbe"
  26. EndSection

  27. Section "InputDevice"
  28.         Identifier        "Generic Keyboard"
  29.         Driver                "keyboard"
  30.         Option                "CoreKeyboard"
  31.         Option                "XkbRules"        "xorg"
  32.         Option                "XkbModel"        "pc104"
  33.         Option                "XkbLayout"        "us"
  34. EndSection

  35. Section "InputDevice"
  36.         Identifier        "Configured Mouse"
  37.         Driver                "mouse"
  38.         Option                "CorePointer"
  39.         Option                "Device"                "/dev/input/mice"
  40.         Option                "Protocol"                "ImPS/2"
  41.         Option                "Emulate3Buttons"        "false"
  42.         Option                "ZAxisMapping"                "4 5"
  43. EndSection

  44. Section "Device"
  45.         Identifier        "ATI Technologies, Inc. RV350 AS [Radeon 9600 AS]"
  46.         #Driver                "ati"
  47.      [color=red]   Driver                "fglrx"[/color]
  48.         VideoRam        128000
  49.         Option                "UseFBDev"                "true"

  50.         [color=red]Option "RenderAccel"[/color]

  51. EndSection

  52. Section "Monitor"
  53.         Identifier        "Generic Monitor"
  54.         Option                "DPMS"
  55.         HorizSync        30-72
  56.         VertRefresh        50-160
  57. EndSection

  58. Section "Screen"
  59.         Identifier        "Default Screen"
  60.         Device                "ATI Technologies, Inc. RV350 AS [Radeon 9600 AS]"
  61.         Monitor                "Generic Monitor"
  62.         DefaultDepth        24
  63.         SubSection "Display"
  64.                 Depth                1
  65.                 Modes                "1024x768" "800x600" "640x480"
  66.         EndSubSection
  67.         SubSection "Display"
  68.                 Depth                4
  69.                 Modes                "1024x768" "800x600" "640x480"
  70.         EndSubSection
  71.         SubSection "Display"
  72.                 Depth                8
  73.                 Modes                "1024x768" "800x600" "640x480"
  74.         EndSubSection
  75.         SubSection "Display"
  76.                 Depth                15
  77.                 Modes                "1024x768" "800x600" "640x480"
  78.         EndSubSection
  79.         SubSection "Display"
  80.                 Depth                16
  81.                 Modes                "1024x768" "800x600" "640x480"
  82.         EndSubSection
  83.         SubSection "Display"
  84.                 Depth                24
  85.                 Modes                "1024x768" "800x600" "640x480"
  86.         EndSubSection
  87. EndSection

  88. Section "ServerLayout"
  89.         Identifier        "Default Layout"
  90.         Screen                "Default Screen"
  91.         InputDevice        "Generic Keyboard"
  92.         InputDevice        "Configured Mouse"
  93. EndSection

  94. Section "DRI"
  95.         Mode        0666
  96. EndSection

  97. [color=red]
  98. Section "Extensions"
  99.     Option "Composite" "Enable"
  100.     Option "RENDER" "Enable"
  101. EndSection[/color]
复制代码


改动字段均已红色标记

请问是我哪里设置错了?谢谢
发表于 2006-4-13 23:15:54 | 显示全部楼层
好像目前被ati的驱动屏蔽了,ati的驱动好糟糕
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-13 23:37:20 | 显示全部楼层
Post by cobranail
好像目前被ati的驱动屏蔽了,ati的驱动好糟糕



是不是Nvidia卡可以?
回复 支持 反对

使用道具 举报

发表于 2006-4-14 14:35:05 | 显示全部楼层
目前支持了,不过还有点小问题。

附一张图,可以看到composite在opengl程序中工作基本正常

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-4-14 16:03:53 | 显示全部楼层
我的也不正常,搞得屏幕花花的
回复 支持 反对

使用道具 举报

发表于 2006-4-14 16:03:53 | 显示全部楼层
我的也不正常,搞得屏幕花花的
回复 支持 反对

使用道具 举报

发表于 2006-4-14 16:10:10 | 显示全部楼层
我晕死~~死晕,怎么发了这么多呀?
回复 支持 反对

使用道具 举报

发表于 2006-4-14 16:54:08 | 显示全部楼层
看一段演示:

http://macslow.thepimp.net/?p=40

不过升级到8756后,启用composite扩展后,glxgears的fps只有200左右了,g2 mx 400再差也不至于才这么点。
回复 支持 反对

使用道具 举报

发表于 2006-4-14 17:51:50 | 显示全部楼层
说A卡,怎么扯到N卡上去了,呵呵
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-15 00:31:58 | 显示全部楼层
Post by cobranail
目前支持了,不过还有点小问题。

附一张图,可以看到composite在opengl程序中工作基本正常



哎,早知道我就买N卡了,你这个卡性能和9550比怎么样啊

我的意思是说,是不是因为Nvidia的驱动支持,所以即使显卡性能一般也可以开composite?
回复 支持 反对

使用道具 举报

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

本版积分规则

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