LinuxSir.cn,穿越时空的Linuxsir!

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

请大家指点一下——关于3D问题?(继续提一下)

[复制链接]
发表于 2008-5-26 17:35:42 | 显示全部楼层 |阅读模式
机器配置: Thinkpad T42, 1G内存, ATI-7500显卡
问题: 开不了3D支持
设置:INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="radeon"
ALSA_CARDS="intel8x0"

使用:

  1. Desktop # eselect opengl list
  2. Available OpenGL implementations:
  3.   [1]   xorg-x11 *
复制代码


测试,开不了3D:

  1. Desktop # glxinfo | grep rendering
  2. direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
复制代码


测试FPS:

  1. Desktop # glxgears
  2. 829 frames in 5.2 seconds = 159.750 FPS
  3. 912 frames in 5.0 seconds = 181.728 FPS
  4. 1482 frames in 5.1 seconds = 293.077 FPS
  5. 1482 frames in 5.1 seconds = 288.693 FPS
复制代码


这样是不是很寒碜啊? 有没有好的方法,让可起3D加速功能啊?


---------------------------------------------------
答案:
根据wiki里 http://zh.gentoo-wiki.com/index.php?...&variant=zh-cn , 进行操作。不过这个文章已经比较陈旧了——有些出入(其中对/etc/portage/package.keywords的修改,估计那时很多包还是属于 overlay的,现在不需修改。其中的 emerge -av xorg-server x11-drm libdrm xf86-video-ati mesa, x11-drm包我这编译不过去)。
具体操作是:
修改内核---把drm编译成模块,emerge了4个包xorg-server libdrm xf86-video-ati mesa, 根据wiki修改了/etc/X11/xorg.conf
发表于 2008-5-26 17:59:51 | 显示全部楼层
在内核中把drm编译成模块,安装libdrm(好像是),重新安装xf86-video-ati,应该可以开启direct rendering了,我的是T30,也是7500的显卡。
回复 支持 反对

使用道具 举报

发表于 2008-5-26 18:05:41 | 显示全部楼层
如果是nvidia卡的话,就简单多了
NVIDIA GF7600GS
  1. pjq@localhost ~ $ glxgears
  2. 45759 frames in 5.0 seconds = 9151.701 FPS
  3. 46049 frames in 5.0 seconds = 9209.658 FPS
  4. 46134 frames in 5.0 seconds = 9226.693 FPS
  5. 46089 frames in 5.0 seconds = 9217.700 FPS
  6. 46131 frames in 5.0 seconds = 9226.182 FPS
  7. 46023 frames in 5.0 seconds = 9204.453 FPS
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-5-26 18:11:56 | 显示全部楼层
文档wiki都有相关文章
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-26 18:23:13 | 显示全部楼层
先谢谢楼上的兄弟们!

看过一些类似文章,还没去测试闭源显卡驱动, 主要想用开源的驱动
http://www.gentoo-cn.org/doc/zh_cn/dri-howto.xml?style=printable
http://www.gentoo-cn.org/doc/zh_ ... xml?style=printable
还没去wiki看。

是不是只能用闭源显卡驱动实现啊?
回复 支持 反对

使用道具 举报

发表于 2008-5-26 18:53:06 | 显示全部楼层
还有一个ati-faq
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-26 20:18:22 | 显示全部楼层
感谢各位!
已经搞定,做个汇报:
根据wiki里 http://zh.gentoo-wiki.com/index. ... s&variant=zh-cn , 进行操作。 不过这个文章已经比较陈旧了——有些出入(其中对/etc/portage/package.keywords的修改,估计那时很多包还是属于overlay的,现在不需修改。其中的 emerge -av xorg-server x11-drm libdrm xf86-video-ati mesa, x11-drm包我这编译不过去)。
具体操作是:
修改内核---把drm编译成模块,emerge了4个包xorg-server libdrm xf86-video-ati mesa, 根据wiki修改了/etc/X11/xorg.conf
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-26 20:56:16 | 显示全部楼层
新答案:特别简单,有趣
我的内核版本是,2.6.25-gentoo-r4,
不需把drm编译成模块。 都编译进内核同时添加
<*>Intel 440LX/BX/GX, I8xx and E7x05 support
也编译进内核。 不用修改/etc/X11/xorg.conf。

我的AGP芯片组信息如下,不是intel 440LX/BX/GX... 但是选上后就可以了
  1. #lspci | grep
  2. 00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03)
复制代码

非常奇怪。似乎以前我的显卡驱动就装好了,缺得就是主板上的芯片驱动支持。

内核选择如下:
  1. Device drivers-->
  2.    Graphics support-->
  3.       <*>/dev/agpgart(AGP Support)-->
  4.           <*>ATI chipset support
  5.           <*>Intel 440LX/BX/GX, I8xx and ........
  6.       <*>Direct Rendering Manager (XFee86 4.1.0 and higher DRI support)-->
  7.           <*>ATI Radeon
  8.       <*>Support for frame buffer devices-->
  9.           <*>ATI Radeon display support
  10.           -[*]   DDC/I2C ....           
  11.           -[*]   support for backlight control
  12.           -[ ]   Lots of debug output .....
复制代码
翻译的文档很多选项都在Character Devices下,那是老版本的内核.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-30 13:02:57 | 显示全部楼层
ATI-7500, thinkpad T42
即使开起了3D,也才这么点性能,有什么其他设置来提高些吗?

  1. @gtnature /bin $ glxinfo | grep rendering
  2. direct rendering: Yes
  3. @gtnature /bin $ glxgears
  4. 3100 frames in 5.0 seconds = 619.618 FPS
  5. 3109 frames in 5.0 seconds = 621.121 FPS
  6. 3086 frames in 5.0 seconds = 617.154 FPS
  7. 3068 frames in 5.0 seconds = 613.540 FPS
  8. 3149 frames in 5.0 seconds = 629.652 FPS
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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