VectorLinux
April 16, 2014, 07:48:15 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: upgrading to Mesa 7.2 and DRM 2.3.1  (Read 1777 times)
edh
Member
*
Posts: 1


« on: September 24, 2008, 12:34:38 pm »

I have installed  Vector 5.9 Standard on a Via C3 Nehemiah based laptop which uses the CLE266 graphics chipset that is set to use 16Mb of the 256Mb system memory.

The original installation gave me the Unichrome driver with OpenGL handled by Mesa 7.0.2.  DRI worked and glxgears gave around 390fps but there was serious graphical corruption in anything OpenGL that was more complex than glxgears.  A lot a a 3D scene would be missing and at resolutions other than 1024x768 the rendered area of the screen would not be properly filled.  With a windowed application this meant you could move it around the desktop and have the window contents appear and reappear as you moved it.  These graphical corruptions I have not seen with any other distro on this system and I attribute it to Mesa 7.0.x.  Performance has never been a strong point of this chipset so I'm not expecting wonders, just something that looks right.

I first built Mesa 7.0.4 from source and installed that successfully as it seemed like a good place to start.  Perhaps slightly better performance resulted but still the same unplayable image issues.

Next I downloaded the Openchrome 0.2.901 driver which might have improved performance a little more but also gave me an issue with some applications failing to run full screen.

I then did a git clone of the Openchrome trunk, built that from source and installed it.  This fixed the full screen issue and also the rendered area not filling the whole screen.  Glxgears was now giving ~417fps.

Mesa 7.2 has recently been released and appears to address lots of issues so I decided to try that.  I downloaded the source, built and installed that along with the required libdrm 2.3.1.  The graphical corruptions now seem fixed however I am left with no DRI so performance has suffered.

Here's my xorg.conf (only modification was change to openchrome):
Code:
$ cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath      "/usr/share/X11/rgb"
ModulePath   "/usr/lib/xorg/modules"
FontPath     "/usr/share/fonts/TTF"
FontPath     "/usr/share/fonts/OTF"
FontPath     "/usr/share/fonts/Type1"
FontPath     "/usr/share/fonts/misc"
FontPath     "/usr/share/fonts/75dpi/:unscaled"
EndSection

Section "Module"
Load  "glx"
Load  "extmod"
Load  "xtrap"
Load  "record"
Load  "GLcore"
Load  "dbe"
Load  "dri"
Load  "drm"
Load  "freetype"
Load  "type1"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
Option  "XkbLayout"  "gb"    ## KEYBOARD_MAP!
Option  "XkbModel"  "pc105"    ## KEYBOARD_MODEL!
Option  "Xkbvariant"  ""    ## KEYBOARD_VARIANT!
EndSection

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

Section "Monitor"
Option "DPMS"
DisplaySize 269 201 # 96 DPI @ 1024x768
Option "UseEdidFreqs" "1"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
HorizSync 31.5-64
VertRefresh 40-90
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     "VBEModes"                  # [<bool>]
#Option     "NoAccel"                   # [<bool>]
#Option     "AccelMethod"               # <str>
#Option     "HWCursor"                  # [<bool>]
#Option     "SWCursor"                  # [<bool>]
#Option     "ShadowFB"                  # [<bool>]
#Option     "Rotate"                    # [<str>]
#Option     "VideoRAM"                  # <i>
#Option     "ActiveDevice"              # [<str>]
#Option     "LCDDualEdge"               # [<bool>]
#Option     "BusWidth"                  # [<str>]
#Option     "Center"                    # [<bool>]
#Option     "PanelSize"                 # [<str>]
#Option     "ForcePanel"                # [<bool>]
#Option     "TVDotCrawl"                # [<bool>]
#Option     "TVDeflicker"               # <i>
#Option     "TVType"                    # [<str>]
#Option     "TVOutput"                  # [<str>]
#Option     "DisableVQ"                 # [<bool>]
#Option     "DRIXINERAMA"               # [<bool>]
#Option     "DisableIRQ"                # [<bool>]
Option     "EnableAGPDMA" "1"           # [<bool>]
#Option     "NoAGPFor2D"                # [<bool>]
#Option     "NoXVDMA"                   # [<bool>]
#Option     "ExaNoComposite"            # [<bool>]
Identifier  "Card0"
Driver      "openchrome"
VendorName  "Unknown Vendor"
BoardName   "Unknown Board"
BusID       "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport   0 0
Depth     1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

Section "Extensions"
Option "Composite" "on"
EndSection
Here's the output of glxinfo:
Code:
$ glxinfo 
name of display: :0.0
display: :0  screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.2
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_MESA_copy_sub_buffer
client glx vendor string: 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_allocate_memory,
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, 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 version: 1.2
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_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample,
    GLX_SGIX_fbconfig, GLX_EXT_texture_from_pixmap
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (2.1 Mesa 7.0.2)
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program,
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_occlusion_query, GL_ARB_point_parameters, GL_ARB_point_sprite,
    GL_ARB_shadow, GL_ARB_shadow_ambient, 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_transpose_matrix, GL_ARB_vertex_program,
    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_clip_volume_hint, GL_EXT_copy_texture, GL_EXT_draw_range_elements,
    GL_EXT_fog_coord, GL_EXT_framebuffer_object, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_point_parameters,
    GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_shared_texture_palette, GL_EXT_stencil_wrap, GL_EXT_subtexture,
    GL_EXT_texture, GL_EXT_texture3D, 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_vertex_array, GL_APPLE_packed_pixels,
    GL_ATI_draw_buffers, GL_ATI_texture_env_combine3,
    GL_ATI_texture_mirror_once, GL_ATIX_texture_env_combine3,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
    GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_NV_blend_square,
    GL_NV_fragment_program, GL_NV_light_max_exponent, GL_NV_point_sprite,
    GL_NV_texgen_reflection, GL_NV_texture_rectangle, GL_NV_vertex_program,
    GL_NV_vertex_program1_1, GL_SGI_color_matrix, GL_SGI_color_table,
    GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
    GL_SGIX_shadow, GL_SGIX_shadow_ambient, GL_SUN_multi_draw_arrays

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x22 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x23 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x24 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  0  0  0  0  0  0 0 None
0x25 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  0  0  0  0  0  0 0 None
0x26 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x27 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x28 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x29 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2a 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  0 16 16 16 16  0 0 Slow
0x2b 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  0 16 16 16 16  0 0 Slow
0x2c 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x2d 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
So far I've done this:
Code:
$ LIBGL_DEBUG=verbose glxinfo > /dev/null
libGL: XF86DRIGetClientDriverName: 5.0.0 unichrome (screen 0)
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/unichrome_dri.so
libGL error: __driCreateNewScreen_20050727 not defined in unichrome_dri.so!
Your driver may be too old for this libGL.
libGL error: unable to load driver: unichrome_dri.so
The time stamp warning is apparently common with the Via drivers and can be ignored.  unichrome_dri.so is where is should be in /usr/lib/xorg/modules/dri/unichrome_dri.so.

Has anyone else attempted an update to Mesa 7.2 and DRM 2.3.1 on Vector?  I've had a Google and can't find anything that matches exactly.  The best help I've found so far on building this stuff is the Gentoo Wiki page on using the Radeon driver: http://gentoo-wiki.com/Radeon#Emerging_the_DRM_modules_separately

I'd also be interested to know of anyone else's mileage with a Via graphics chipset and the different drivers.

Edit: Oh and I forgot to mention than downgrading to Mesa 7.0.4 works OK but with the same issues it always had.
« Last Edit: September 24, 2008, 12:51:52 pm by edh » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!