免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1713 | 回复: 0
打印 上一主题 下一主题

OpenGL问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-01 16:41 |只看该作者 |倒序浏览
问题是运行kde自带的GL屏保,只能显示上1/3屏幕的屏保效果,下面2/3黑色,无任何动态效果。

相关信息如下:
agp信息:

  1. %dmesg |grep agp
  2. agp0: <Intel 82915GM (915GM GMCH) SVGA controller> port 0x1800-0x1807 mem 0x90080000-0x900fffff,0xb0000000-0xbfffffff,0x90000000-0x9003ffff irq 16 at device 2.0 on pci0
  3. agp0: detected 7932k stolen memory
  4. agp0: aperture size is 256M
  5. drmsub0: <Intel i915GM>: (child of agp_i810.c) on agp0
复制代码


drm 信息:

  1. %dmesg | grep drm
  2. drmsub0: <Intel i915GM>: (child of agp_i810.c) on agp0
  3. info: [drm] AGP at 0x90080000 0MB
  4. info: [drm] Initialized i915 1.4.0 20060119
复制代码


成功打开dri:

  1. %glxinfo
  2. name of display: :0.0
  3. display: :0  screen: 0
  4. direct rendering: Yes
  5. server glx vendor string: SGI
  6. server glx version string: 1.2
  7. server glx extensions:
  8.     GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
  9.     GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
  10.     GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
  11.     GLX_SGIX_fbconfig
  12. client glx vendor string: SGI
  13. client glx version string: 1.4
  14. client glx extensions:
  15.     GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
  16.     GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
  17.     GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
  18.     GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
  19.     GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
  20.     GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group
  21. GLX extensions:
  22.     GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
  23.     GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
  24.     GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample,
  25.     GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
  26. OpenGL vendor string: Tungsten Graphics, Inc
  27. OpenGL renderer string: Mesa DRI Intel(R) 915GM 20050225
  28. OpenGL version string: 1.3 Mesa 6.4.1
  29. OpenGL extensions:
  30.     GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_imaging,
  31.     GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_point_parameters,
  32.     GL_ARB_shadow, GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
  33.     GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
  34.     GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
  35.     GL_ARB_texture_mirrored_repeat, GL_ARB_texture_rectangle,
  36.     GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object,
  37.     GL_ARB_vertex_program, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
  38.     GL_EXT_blend_color, GL_EXT_blend_equation_separate,
  39.     GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
  40.     GL_EXT_clip_volume_hint, GL_EXT_cull_vertex, GL_EXT_compiled_vertex_array,
  41.     GL_EXT_convolution, GL_EXT_copy_texture, GL_EXT_draw_range_elements,
  42.     GL_EXT_fog_coord, GL_EXT_histogram, GL_EXT_multi_draw_arrays,
  43.     GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_polygon_offset,
  44.     GL_EXT_rescale_normal, GL_EXT_secondary_color,
  45.     GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,
  46.     GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
  47.     GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
  48.     GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
  49.     GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
  50.     GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array,
  51.     GL_3DFX_texture_compression_FXT1, GL_APPLE_client_storage,
  52.     GL_APPLE_packed_pixels, GL_ATI_blend_equation_separate,
  53.     GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
  54.     GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
  55.     GL_MESA_window_pos, GL_NV_blend_square, GL_NV_light_max_exponent,
  56.     GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program,
  57.     GL_NV_vertex_program1_1, GL_OES_read_format, GL_SGI_color_matrix,
  58.     GL_SGI_color_table, GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
  59.     GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
  60.     GL_SUN_multi_draw_arrays
  61. glu version: 1.3
  62. glu extensions:
  63.     GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

  64.    visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
  65. id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
  66. ----------------------------------------------------------------------
  67. 0x23 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
  68. 0x24 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
  69. 0x25 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
  70. 0x26 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
  71. 0x27 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
  72. 0x28 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
  73. 0x29 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
  74. 0x2a 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
  75. 0x2b 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
  76. 0x2c 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
  77. 0x2d 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
  78. 0x2e 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
  79. 0x2f 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
  80. 0x30 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
  81. 0x31 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
  82. 0x32 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
复制代码



glxgears测试稳定在1400fps左右:

  1. %glxgears
  2. 6913 frames in 5.0 seconds = 1382.557 FPS
  3. 6958 frames in 5.0 seconds = 1391.595 FPS
  4. 7001 frames in 5.0 seconds = 1400.087 FPS
  5. 6991 frames in 5.0 seconds = 1398.142 FPS
复制代码


xorg.conf

  1. Section "ServerLayout"
  2.         Identifier     "X.org Configured"
  3.         Screen      0  "Screen0" 0 0
  4.         InputDevice    "Mouse0" "CorePointer"
  5.         InputDevice    "Keyboard0" "CoreKeyboard"
  6. EndSection

  7. Section "Files"
  8.         RgbPath      "/usr/X11R6/lib/X11/rgb"
  9.         ModulePath   "/usr/X11R6/lib/modules"
  10.         FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
  11.         FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
  12.         FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
  13.         FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
  14.         FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
  15.         FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
  16. EndSection

  17. Section "Module"
  18.         Load  "dbe"
  19.         Load  "dri"
  20.         Load  "extmod"
  21.         Load  "glx"
  22.         Load  "record"
  23.         Load  "xtrap"
  24.         Load  "freetype"
  25.         Load  "type1"
  26. EndSection

  27. Section "InputDevice"
  28.         Identifier  "Keyboard0"
  29.         Driver      "kbd"
  30. EndSection

  31. Section "InputDevice"
  32.         Identifier  "Mouse0"
  33.         Driver      "mouse"
  34.         Option            "Protocol" "auto"
  35.         Option            "Device" "/dev/sysmouse"
  36.         Option            "ZAxisMapping" "4 5 6 7"
  37. EndSection

  38. Section "Monitor"
  39.         Identifier   "Monitor0"
  40.         VendorName   "Monitor Vendor"
  41.         ModelName    "Monitor Model"
  42. EndSection


  43. Section "Device"
  44.         ### Available Driver options are:-
  45.         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  46.         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
  47.         ### [arg]: arg optional
  48.         #Option     "NoAccel"                    # [<bool>]
  49.         #Option     "SWcursor"                   # [<bool>]
  50.         #Option     "ColorKey"                   # <i>
  51.         #Option     "CacheLines"                 # <i>
  52.         #Option     "Dac6Bit"                    # [<bool>]
  53.         Option     "DRI"                        "True"# [<bool>]
  54.         #Option     "NoDDC"                      # [<bool>]
  55.         #Option     "ShowCache"                  # [<bool>]
  56.         #Option     "XvMCSurfaces"               # <i>
  57.         #Option     "PageFlip"                   # [<bool>]
  58.         Identifier  "Card0"
  59.         Driver      "i810"  
  60. #######################Added 1#########################
  61.                  Option      "NoAccel" "false"
  62.        #Option      "DRI" "true"
  63.        Option      "DevicePresence" "true"
  64.        Option      "MonitorLayout" "CRT,LFP"
  65.        Option      "Clone" "true"
  66.        #VideoRam    65536
  67.         Option                "DDC" "false"
  68. #####################################################
  69.         VendorName  "Intel Corporation"
  70.         BoardName   "Mobile 915GM/GMS/910GML Express Graphics Controller"
  71.         BusID       "PCI:0:2:0"
  72. EndSection

  73. Section "Screen"
  74.         Identifier "Screen0"
  75.         Device     "Card0"
  76.         Monitor    "Monitor0"
  77.         DefaultDepth        16

  78.         SubSection "Display"
  79.                 Viewport   0 0
  80.                 Depth     1
  81.         EndSubSection
  82.         SubSection "Display"
  83.                 Viewport   0 0
  84.                 Depth     4
  85.         EndSubSection
  86.         SubSection "Display"
  87.                 Viewport   0 0
  88.                 Depth     8
  89.         EndSubSection
  90.         SubSection "Display"
  91.                 Viewport   0 0
  92.                 Depth     15
  93.         EndSubSection
  94.         SubSection "Display"
  95.                 Viewport   0 0
  96.                 Depth     16
  97.                 Modes "1024x768"
  98.         EndSubSection
  99.         SubSection "Display"
  100.                 Viewport   0 0
  101.                 Depth     24
  102.         EndSubSection
  103. EndSection

  104. ######################Added 2#############################
  105. Section "DRI"
  106.   Mode 0666
  107. EndSection
  108. ##########################################################
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP