1 (03.10.2011 21:49:26 отредактировано FaagaN)

Объясните пожалуйста возможно ли включить 3Д ускорение с открытым драйвером radeon и если возможно то как это сделать.
У меня видеокарта radeon hd 5750.
uname -a

 Консоль:
Linux srv.home 2.6.32-131.12.1.el6.x86_64 #1 SMP Tue Aug 23 11:13:45 CDT 2011 x86_64 x86_64 x86_64 GNU/Linux

Искал инфу в гугле но все старые статья времен видеокарт X1600.
На всякий случай вот как сейчас выглядит xorg.conf

+ открыть спойлер

 Консоль:
cat xorg.conf
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib64/xorg/modules"
    FontPath     "catalogue:/etc/X11/fontpath.d"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "record"
    Load  "dri2"
    Load  "dri"
    Load  "extmod"
    Load  "dbe"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    #DisplaySize      410   260    # mm
    Identifier   "Monitor0"
    VendorName   "SAM"
    ModelName    "SyncMaster"
    HorizSync    30.0 - 81.0
    VertRefresh  56.0 - 75.0
    Option        "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "Dac8Bit"                # [<bool>]
        #Option     "BusType"                # [<str>]
        #Option     "CPPIOMode"              # [<bool>]
        #Option     "CPusecTimeout"          # <i>
        #Option     "AGPMode"                # <i>
        #Option     "AGPFastWrite"           # [<bool>]
        #Option     "AGPSize"                # <i>
        #Option     "GARTSize"               # <i>
        #Option     "RingSize"               # <i>
        #Option     "BufferSize"             # <i>
        #Option     "EnableDepthMoves"       # [<bool>]
        #Option     "EnablePageFlip"         # [<bool>]
        #Option     "NoBackBuffer"           # [<bool>]
        #Option     "DMAForXv"               # [<bool>]
        #Option     "FBTexPercent"           # <i>
        #Option     "DepthBits"              # <i>
        #Option     "PCIAPERSize"            # <i>
        #Option     "AccelDFS"               # [<bool>]
        #Option     "IgnoreEDID"             # [<bool>]
        #Option     "CustomEDID"             # [<str>]
        #Option     "DisplayPriority"        # [<str>]
        #Option     "PanelSize"              # [<str>]
        #Option     "ForceMinDotClock"       # <freq>
        #Option     "ColorTiling"            # [<bool>]
        #Option     "VideoKey"               # <i>
        #Option     "RageTheatreCrystal"     # <i>
        #Option     "RageTheatreTunerPort"     # <i>
        #Option     "RageTheatreCompositePort"     # <i>
        #Option     "RageTheatreSVideoPort"     # <i>
        #Option     "TunerType"              # <i>
        #Option     "RageTheatreMicrocPath"     # <str>
        #Option     "RageTheatreMicrocType"     # <str>
        #Option     "ScalerWidth"            # <i>
        #Option     "RenderAccel"            # [<bool>]
        #Option     "SubPixelOrder"          # [<str>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "ClockGating"            # [<bool>]
        #Option     "VGAAccess"              # [<bool>]
        #Option     "ReverseDDC"             # [<bool>]
        #Option     "LVDSProbePLL"           # [<bool>]
        #Option     "AccelMethod"            # <str>
        #Option     "DRI"                    # [<bool>]
        #Option     "ConnectorTable"         # <str>
        #Option     "DefaultConnectorTable"     # [<bool>]
        #Option     "DefaultTMDSPLL"         # [<bool>]
        #Option     "TVDACLoadDetect"        # [<bool>]
        #Option     "ForceTVOut"             # [<bool>]
        #Option     "TVStandard"             # <str>
        #Option     "IgnoreLidStatus"        # [<bool>]
        #Option     "DefaultTVDACAdj"        # [<bool>]
        #Option     "Int10"                  # [<bool>]
        #Option     "EXAVSync"               # [<bool>]
        #Option     "ATOMTVOut"              # [<bool>]
        #Option     "R4xxATOM"               # [<bool>]
        #Option     "ForceLowPowerMode"      # [<bool>]
        #Option     "DynamicPM"              # [<bool>]
        #Option     "NewPLL"                 # [<bool>]
        #Option     "ZaphodHeads"            # <str>
    Identifier  "Card0"
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BoardName   "Juniper [Radeon HD 5750 Series]"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

2

1) пользуйтесь спойлерами
2) что glxgears и glxinfo говорят?

95% процентов проблем находятся между клавиатурой и стулом.

3

Fat-Zer пишет:

1) пользуйтесь спойлерами
2) что glxgears и glxinfo говорят?

 Консоль:
glxgears
2160 frames in 5.0 seconds = 431.654 FPS
2238 frames in 5.0 seconds = 447.529 FPS

А вот что говорит glxinfo
glxinfo

name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method, 
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe, 
    GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_MESA_copy_sub_buffer
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap, 
    GLX_INTEL_swap_event
GLX version: 1.4
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.10
OpenGL shading language version string: 1.20
OpenGL extensions:
    GL_ARB_copy_buffer, GL_ARB_depth_clamp, GL_ARB_depth_texture, 
    GL_ARB_draw_buffers, GL_ARB_draw_elements_base_vertex, 
    GL_ARB_explicit_attrib_location, GL_ARB_fragment_coord_conventions, 
    GL_ARB_fragment_program, GL_ARB_fragment_program_shadow, 
    GL_ARB_fragment_shader, GL_ARB_framebuffer_object, 
    GL_ARB_half_float_pixel, GL_ARB_half_float_vertex, 
    GL_ARB_map_buffer_range, GL_ARB_multisample, GL_ARB_multitexture, 
    GL_ARB_occlusion_query, GL_ARB_pixel_buffer_object, 
    GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_provoking_vertex, 
    GL_ARB_shader_objects, GL_ARB_shading_language_100, GL_ARB_shadow, 
    GL_ARB_shadow_ambient, GL_ARB_sync, GL_ARB_texture_border_clamp, 
    GL_ARB_texture_compression, GL_ARB_texture_cube_map, 
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine, 
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3, 
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two, 
    GL_ARB_texture_rectangle, GL_ARB_texture_rg, GL_ARB_texture_swizzle, 
    GL_ARB_transpose_matrix, GL_ARB_vertex_array_bgra, 
    GL_ARB_vertex_array_object, GL_ARB_vertex_buffer_object, 
    GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos, 
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, 
    GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate, 
    GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract, 
    GL_EXT_compiled_vertex_array, GL_EXT_copy_texture, 
    GL_EXT_depth_bounds_test, GL_EXT_draw_buffers2, 
    GL_EXT_draw_range_elements, GL_EXT_framebuffer_blit, 
    GL_EXT_framebuffer_multisample, GL_EXT_framebuffer_object, 
    GL_EXT_fog_coord, GL_EXT_gpu_program_parameters, GL_EXT_multi_draw_arrays, 
    GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels, 
    GL_EXT_paletted_texture, GL_EXT_pixel_buffer_object, 
    GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_provoking_vertex, 
    GL_EXT_rescale_normal, GL_EXT_secondary_color, 
    GL_EXT_separate_shader_objects, GL_EXT_separate_specular_color, 
    GL_EXT_shadow_funcs, GL_EXT_shared_texture_palette, 
    GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_subtexture, 
    GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_array, 
    GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp, 
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine, 
    GL_EXT_texture_env_dot3, GL_EXT_texture_lod_bias, 
    GL_EXT_texture_mirror_clamp, GL_EXT_texture_object, 
    GL_EXT_texture_rectangle, GL_EXT_texture_sRGB, GL_EXT_texture_swizzle, 
    GL_EXT_vertex_array, GL_EXT_vertex_array_bgra, 
    GL_3DFX_texture_compression_FXT1, GL_APPLE_packed_pixels, 
    GL_APPLE_vertex_array_object, GL_APPLE_object_purgeable, 
    GL_ATI_blend_equation_separate, GL_ATI_envmap_bumpmap, 
    GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once, 
    GL_ATI_fragment_shader, GL_ATI_separate_stencil, 
    GL_IBM_multimode_draw_arrays, GL_IBM_rasterpos_clip, 
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate, 
    GL_MESA_pack_invert, GL_MESA_resize_buffers, GL_MESA_texture_array, 
    GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_blend_square, 
    GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_fragment_program, 
    GL_NV_fragment_program_option, GL_NV_light_max_exponent, 
    GL_NV_packed_depth_stencil, GL_NV_point_sprite, GL_NV_texgen_reflection, 
    GL_NV_texture_env_combine4, GL_NV_texture_rectangle, GL_NV_vertex_program, 
    GL_NV_vertex_program1_1, GL_OES_read_format, GL_SGI_texture_color_table, 
    GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp, 
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

4

нуда... похоже всем процессор занимается...
напрягает вот это:

FaagaN пишет:

OpenGL renderer string: Software Rasterizer

попробуйте включить:
Option     "RenderAccel" "true"
Option     "DRI"  "true"

потом ещё стоит с AccelMethod поиграться... что именно туда писать - не скажу...

95% процентов проблем находятся между клавиатурой и стулом.

5

Fat-Zer пишет:

нуда... похоже всем процессор занимается...
напрягает вот это:

FaagaN пишет:

OpenGL renderer string: Software Rasterizer

попробуйте включить:
Option     "RenderAccel" "true"
Option     "DRI"  "true"

потом ещё стоит с AccelMethod поиграться... что именно туда писать - не скажу...

Не помогло.  ac
AccelMethod ставил EXA и XAA пробовал все равно.

6 (05.10.2011 00:04:20 отредактировано Peter)

У меня тоже radeon, видеокарта старая, DRI есть. Вот мой xorg.conf:

+ открыть спойлер

# Xorg configuration created by system-config-display

Section "ServerLayout"
    Identifier     "single head configuration"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

#    FontPath     "unix/:7100"
    ModulePath   "/usr/lib/xorg/modules"
EndSection

Section "Module"
EndSection

Section "ServerFlags"

#    Option        "AllowEmptyInput" "no"
#     Option        "AllowNonLocalModInDev" "on"
#    Option        "AllowMouseOpenFail" "no"
#    Option        "AIGLX" "on"
    Option        "XkbDisable" "no"
    Option        "AIGLX" "on"
    Option        "AccelMethod" "EXA"
    Option        "NoAccel" "no"
    Option        "DRI" "on"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "ZAxisMapping" "4 5"
    Option        "Emulate3Buttons" "no"
    Option        "Protocol" "IMPS/2"
    Option        "Device" "/dev/input/mice"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option        "Xleds" "1 2 3"
    Option        "LeftAlt" "Meta"
    Option        "RightAlt" "ModeShift"
    Option        "RightCtl" "Control"
    Option        "XkbModel" "pc105"
    Option        "XkbRules" "xorg"
    Option        "XkbLayout" "us,ru"
    Option        "XkbOptions" "grp:shifts_toggle,grp_led:scroll"
#    Option        "XkbOptions" "grp:ctrl+shift_toggle,grp_led:scroll"
#    Option    "1" "on"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
#    DisplaySize  280    210
#    DisplaySize  325    244
    DisplaySize  307    246
#    ModeLine     "1024x768" 80.0 1024 1048 1152 1328 768 769 779 803
#    ModeLine     "1024x768" 81.80 1024 1080 1192 1360 768 769 772 802 -HSync +VSync
    ModeLine     "1280x1024" 145.69 1280 1376 1512 1744 1024 1025 1028 1071 -HSync +VSync
    Option        "VendorName" "ATI Open Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
#    Option        "Composite" "Enable"
EndSection

Section "Device"
    Identifier  "Device0"
    Driver      "radeon"
    BusID       "PCI:2:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Device0"
    Monitor    "Monitor0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes    "1280x1024"
    EndSubSection
EndSection

Section "DRI"
    Mode         0666
EndSection

#Section "Extensions"
#    Option        "Composite" "Enable"
#EndSection

Вообще правильного xorg.conf недостаточно, должны ещё быть установлены всякие
библиотеки со словом mesa в названии пакета.

Пётр.

Пётр.

7

Peter пишет:

У меня тоже radeon, видеокарта старая, DRI есть. Вот мой xorg.conf:

+ открыть спойлер

# Xorg configuration created by system-config-display

Section "ServerLayout"
    Identifier     "single head configuration"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

#    FontPath     "unix/:7100"
    ModulePath   "/usr/lib/xorg/modules"
EndSection

Section "Module"
EndSection

Section "ServerFlags"

#    Option        "AllowEmptyInput" "no"
#     Option        "AllowNonLocalModInDev" "on"
#    Option        "AllowMouseOpenFail" "no"
#    Option        "AIGLX" "on"
    Option        "XkbDisable" "no"
    Option        "AIGLX" "on"
    Option        "AccelMethod" "EXA"
    Option        "NoAccel" "no"
    Option        "DRI" "on"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "ZAxisMapping" "4 5"
    Option        "Emulate3Buttons" "no"
    Option        "Protocol" "IMPS/2"
    Option        "Device" "/dev/input/mice"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option        "Xleds" "1 2 3"
    Option        "LeftAlt" "Meta"
    Option        "RightAlt" "ModeShift"
    Option        "RightCtl" "Control"
    Option        "XkbModel" "pc105"
    Option        "XkbRules" "xorg"
    Option        "XkbLayout" "us,ru"
    Option        "XkbOptions" "grp:shifts_toggle,grp_led:scroll"
#    Option        "XkbOptions" "grp:ctrl+shift_toggle,grp_led:scroll"
#    Option    "1" "on"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
#    DisplaySize  280    210
#    DisplaySize  325    244
    DisplaySize  307    246
#    ModeLine     "1024x768" 80.0 1024 1048 1152 1328 768 769 779 803
#    ModeLine     "1024x768" 81.80 1024 1080 1192 1360 768 769 772 802 -HSync +VSync
    ModeLine     "1280x1024" 145.69 1280 1376 1512 1744 1024 1025 1028 1071 -HSync +VSync
    Option        "VendorName" "ATI Open Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
#    Option        "Composite" "Enable"
EndSection

Section "Device"
    Identifier  "Device0"
    Driver      "radeon"
    BusID       "PCI:2:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Device0"
    Monitor    "Monitor0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes    "1280x1024"
    EndSubSection
EndSection

Section "DRI"
    Mode         0666
EndSection

#Section "Extensions"
#    Option        "Composite" "Enable"
#EndSection

Вообще правильного xorg.conf недостаточно, должны ещё быть установлены всякие
библиотеки со словом mesa в названии пакета.

Пётр.

все пакеты и библеотеки со словом mesa установлены.
сегодня вечером попробую ваш конфиг.

8

А почему такая система? Может попробовать Федора 15 или Федора 16?

9

У вас glxinfo показывает, что всё в порядке. 3D есть, только не забывайте, что этот драйвер сделан методом реверс-инжиниринга, поэтому он небыстр. Ещё он не умеет управлять питанием на радеонах, да и много чего ещё.

При укусе ядовитой змеи, держите её голову на расстоянии от себя, чтобы она не укусила вас в ответ...

10

Writer пишет:

У вас glxinfo показывает, что всё в порядке. 3D есть, только не забывайте, что этот драйвер сделан методом реверс-инжиниринга, поэтому он небыстр. Ещё он не умеет управлять питанием на радеонах, да и много чего ещё.

Не надо путать, это nouveau делается через реверс-инжиниринг. А драйвер radeon делается на основе открытых спеков AMD.

11

Vascom пишет:

А почему такая система? Может попробовать Федора 15 или Федора 16?

Вот в fedora 15 с gnome 3 сразу после установки включилось 3D ускорение. Но мен не понравился Gnome 3.

12

Vascom пишет:

Не надо путать, это nouveau делается через реверс-инжиниринг. А драйвер radeon делается на основе открытых спеков AMD.

Ну пускай так, всё равно нужно быть готовым к невысокой производительности в играх.
Зато OSS radeon отлично играет кино, без гребёнки. И флэш отлично играет.

При укусе ядовитой змеи, держите её голову на расстоянии от себя, чтобы она не укусила вас в ответ...

13 (05.10.2011 16:15:49 отредактировано FaagaN)

Writer пишет:

У вас glxinfo показывает, что всё в порядке. 3D есть, только не забывайте, что этот драйвер сделан методом реверс-инжиниринга, поэтому он небыстр. Ещё он не умеет управлять питанием на радеонах, да и много чего ещё.

А почему когда захожу в эфекты рабочего стола мне говорит нужно включить 3D. Что бы compiz заработал. Вот как его бы мне включить?
Конфиг xorg.conf создавал командой X :1 -configure

14

а можно для сравнения ещё чей-нибудь(из тех, кто считает, что у него radeon работает) glxinfo(больше всего интересует OpenGL renderer string) и значение fps из glxgears...

FaagaN, давайте логи(только не сюда, а на какой-нибудь pastebin)

95% процентов проблем находятся между клавиатурой и стулом.

15

Не стал замарачиваться и поставил amd драйвера. Боялся что перестанет работать kvm(где то слышал что они создают проблемы с kvm) но вроде обошлось.  smile