LinuxSir.cn,穿越时空的Linuxsir!

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

新内核(打开了dri2/kms)但是3d加速还是打不开

[复制链接]
发表于 2009-12-27 00:53:10 | 显示全部楼层 |阅读模式
刚配置了新内核2.6.30-gentoo-r8
想打开dri2/kms/gem
CONFIG_AGP=y
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
CONFIG_AGP_INTEL=y
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_EFFICEON is not set
CONFIG_DRM=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
CONFIG_DRM_I915=y
CONFIG_DRM_I915_KMS=y
# CONFIG_DRM_MGA is not set
系统正常启动,分辨率,2d性能正常,# glxinfo
name of display: :0.0
disabling 3D rasterization
display: :0  screen: 0   
direct rendering: Yes     
server glx vendor string: SGI
server glx version string: 1.2
但是# glxgears
disabling 3D rasterization
20 frames in 5.2 seconds =  3.821 FPS
19 frames in 5.0 seconds =  3.766 FPS
19 frames in 5.0 seconds =  3.766 FPS
19 frames in 5.0 seconds =  3.778 FPS
19 frames in 5.1 seconds =  3.761 FPS
实在低的可怜,我的intel 965gm x3100虽然是集显,以前用arch时也有几百FPS,怀疑是内核配置的问题,麻烦大虾帮忙分析分析,如果需要什么补充的资料,我尽量及时补上。

本帖子中包含更多资源

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

x
 楼主| 发表于 2009-12-27 00:59:26 | 显示全部楼层

补充

x11-base/xorg-server 1.6.5-r1
x11-drivers/xf86-video-intel 2.9.1
x11-libs/libdrm 2.4.15
# dmesg |grep agp
[    0.354899] Linux agpgart interface v0.103
[    0.354991] agpgart-intel 0000:00:00.0: Intel 965GM Chipset
[    0.355666] agpgart-intel 0000:00:00.0: detected 7676K stolen memory
[    0.358294] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xe0000000
# dmesg |grep drm
[    0.372539] [drm] Initialized drm 1.1.0 20060810
[    1.074525] [drm] TV-13: set mode NTSC 480i 0
[    1.261612] [drm] LVDS-8: set mode 1280x800 15
[    1.674881] fb0: inteldrmfb frame buffer device
[    1.690340] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[   44.675955] [drm] TV-13: set mode NTSC 480i 0
[   44.817034] [drm] TV-13: set mode NTSC 480i 0
[   45.224264] [drm] TV-13: set mode NTSC 480i 0
[   45.365314] [drm] TV-13: set mode NTSC 480i 0
[   57.298838] [drm] TV-13: set mode NTSC 480i 0
[   57.440043] [drm] TV-13: set mode NTSC 480i 0
[   58.331934] [drm] TV-13: set mode NTSC 480i 0
[   58.473426] [drm] TV-13: set mode NTSC 480i 0

Xorg.0.log
(II) LoadModule: "intel"                                                                  
(II) Loading /usr/lib/xorg/modules/drivers//intel_drv.so                                   
(II) Module intel: vendor="X.Org Foundation"                                               
        compiled for 1.6.5, module version = 2.9.1                                         
        Module class: X.Org Video Driver                                                   
        ABI class: X.Org Video Driver, version 5.0                                         
(II) intel: Driver for Intel Integrated Graphics Chipsets: i810,                           
        i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G,                     
        E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,                 
        965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,                    
        4 Series, G45/G43, Q45/Q43, G41, B43, Clarkdale, Arrandale                        
(II) Primary Device is: PCI 00@00:02:0                                                     
(II) resource ranges after probing:                                                        
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX                                
        [1] -1  0       0x000f0000 - 0x000fffff (0x10000) MX                           
        [2] -1  0       0x000c0000 - 0x000effff (0x30000) MX                           
        [3] -1  0       0x00000000 - 0x0009ffff (0xa0000) MX                           
        [4] -1  0       0x0000ffff - 0x0000ffff (0x1) IX                                
        [5] -1  0       0x00000000 - 0x00000000 (0x1) IX                                
drmOpenDevice: node name is /dev/dri/card0                                                
drmOpenDevice: open result is 7, (OK)                                                      
drmOpenByBusid: Searching for BusID pci:0000:00:02.0                                       
drmOpenDevice: node name is /dev/dri/card0                                                
drmOpenDevice: open result is 7, (OK)                                                      
drmOpenByBusid: drmOpenMinor returns 7                                                     
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0                                       
(==) intel(0): Depth 24, (--) framebuffer bpp 32                                          
(==) intel(0): RGB weight 888                                                              
(==) intel(0): Default visual is TrueColor                                                
(**) intel(0): Option "DRI" "true"                                                         
(**) intel(0): Option "Tiling" "False"                                                     
(**) intel(0): Option "XvMC" "true"                                                        
(II) intel(0): Integrated Graphics Chipset: Intel(R) 965GM                                 
(--) intel(0): Chipset: "965GM"                                                            
(II) intel(0): Output VGA1 using monitor section Monitor0                                 
(II) intel(0): Output LVDS1 has no monitor section                                         
(II) intel(0): found backlight control interface /sys/class/backlight/acpi_video0         
(II) intel(0): Output TV1 has no monitor section                                          
(II) intel(0): Output VGA1 disconnected                                                   
(II) intel(0): Output LVDS1 connected                                                      
(II) intel(0): Output TV1 disconnected                                                     
(II) intel(0): Using exact sizes for initial modes                                         
(II) intel(0): Output LVDS1 using initial mode 1280x800                                    
(==) intel(0): video overlay key set to 0x101fe                                            
(==) intel(0): Using gamma correction (1.0, 1.0, 1.0)                                      
(==) intel(0): DPI set to (96, 96)                                                         
(II) Loading sub module "fb"                                                               
(II) LoadModule: "fb"                                                                     
(II) Loading /usr/lib/xorg/modules//libfb.so                                               
(II) Module fb: vendor="X.Org Foundation"                                                  
        compiled for 1.6.5, module version = 1.0.0                                         
        ABI class: X.Org ANSI C Emulation, version 0.4                                    
(II) Loading sub module "dri2"                                                            
(II) LoadModule: "dri2"                                                                    
(II) Reloading /usr/lib/xorg/modules/extensions//libdri2.so                                
(==) Depth 24 pixmap format is 32 bpp                                                      
(II) do I need RAC?  No, I don't.                                                         
(II) resource ranges after preInit:                                                        
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX                                
        [1] -1  0       0x000f0000 - 0x000fffff (0x10000) MX                           
        [2] -1  0       0x000c0000 - 0x000effff (0x30000) MX                           
        [3] -1  0       0x00000000 - 0x0009ffff (0xa0000) MX                           
        [4] -1  0       0x0000ffff - 0x0000ffff (0x1) IX                                
        [5] -1  0       0x00000000 - 0x00000000 (0x1) IX                                
(WW) intel(0): VideoRam configuration found, which is no longer recommended.               
(II) intel(0): Continuing with default 0kB VideoRam instead of 261120 kB.                  
(II) intel(0): [DRI2] Setup complete                                                      
(**) intel(0): Framebuffer compression disabled                                            
(**) intel(0): Tiling disabled                                                            
(**) intel(0): SwapBuffers wait enabled                                                   
(**) intel(0): VideoRam: 262144 KB                                                         
(II) intel(0): Attempting memory allocation with untiled buffers.                          
(II) intel(0): Untiled allocation successful.                                             
(II) UXA(0): Driver registered support for the following operations:                       
(II)         solid                                                                        
(II)         copy                                                                          
(II)         composite (RENDER acceleration)                                               
(==) intel(0): Backing store disabled                                                      
(==) intel(0): Silken mouse enabled                                                        
(II) intel(0): Initializing HW Cursor                                                      
(II) intel(0): No memory allocations                                                      
(II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.            
(II) intel(0): DPMS enabled                                                               
(**) intel(0): Intel XvMC decoder enabled                                                  
(II) intel(0): Set up textured video                                                      
(II) intel(0): [XvMC] i965_xvmc driver initialized.                                       
(II) intel(0): direct rendering: DRI2 Enabled                                             
(WW) intel(0): Option "AccelMethod" is not used                                            
(--) RandR disabled                                                                        
(II) Initializing built-in extension Generic Event Extension                              
(II) Initializing built-in extension SHAPE                                                
(II) Initializing built-in extension MIT-SHM                                               
(II) Initializing built-in extension XInputExtension                                       
(II) Initializing built-in extension XTEST                                                
(II) Initializing built-in extension BIG-REQUESTS                                          
(II) Initializing built-in extension SYNC                                                  
(II) Initializing built-in extension XKEYBOARD                                             
(II) Initializing built-in extension XC-MISC                                               
(II) Initializing built-in extension XINERAMA                                             
(II) Initializing built-in extension XFIXES                                                
(II) Initializing built-in extension RENDER                                                
(II) Initializing built-in extension RANDR                                                
(II) Initializing built-in extension COMPOSITE                                             
(II) Initializing built-in extension DAMAGE                                                
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer                                               
(II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control                        
(II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects                           
(II) AIGLX: Loaded and initialized /usr/lib/dri/i965_dri.so                                
(II) GLX: Initialized DRI2 GL provider for screen 0                                       
(II) intel(0): Setting screen physical size to 304 x 190
回复 支持 反对

使用道具 举报

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

本版积分规则

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