Hi,

I have a 3D visualization tool that crashes with the 3.X versions of the
Mesa that are in <=XF86 4.2.0. I noticed in the changelog that Mesa
4.0.2 has been add to the latest CVS so I thought I would give it a try.
Without DRI everything works great (except for the speed of course). The
problems arise when I want to use DRI. I'll try to give all the
backgroud information first, if I miss an important detail please let me
know.

My system is a clean RedHat 7.3 install on a dual athlon machine. My
graphics card is Matrox G550. DRI loads and 'glxgears' works great with
the XF86 4.2.0 that comes with RedHat 7.3.

I download the CVS on July 16 and did a 'make World' and then a 'make
install'. Everything seems to install ok and X starts without any
problems. I recompiled the DRI module for mga and installed it in the
appropriate /lib/modules directory and did a 'depmod -a'

Using the same XF86Config-4 file from the 4.2.0 version under 4.2.99,
DRI fails to load.......

(II) MGA(0): [drm] bpp: 32 depth: 24
(II) MGA(0): [drm] Sarea 2200+664: 2864
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
[drm] failed to load kernel module "mga"
(II) MGA(0): [drm] drmOpen failed
(EE) MGA(0): [drm] DRIScreenInit failed. Disabling DRI.

I think the reason that DRI fails to load is found in 'dmesg'. The
following appears during startup of the X server:

[drm:drm_init] *ERROR* Cannot initialize the agpgart module.

I find this very strange since the agpgart hasn't changed since it
loaded perfectly well under 4.2.0. I tried loading the mga module
manually. With 'modprobe mga' I get:

/lib/modules/2.4.18-3smp/kernel/drivers/char/drm/mga.o: init_module:
Cannot allocate memory
Hint: insmod errors can be caused by incorrect module parameters,
including invalid IO or IRQ parameters
/lib/modules/2.4.18-3smp/kernel/drivers/char/drm/mga.o: insmod
/lib/modules/2.4.18-3smp/kernel/drivers/char/drm/mga.o failed
/lib/modules/2.4.18-3smp/kernel/drivers/char/drm/mga.o: insmod mga failed

If I load the agpgart module first, then I can load the mga module
without errors. However, If I manually load agpgart and mga, start X and
then try to run 'glxgears' by system freezes and I have to reboot.
Another interesting point is that if I start XF86 4.2.0 and exit, the
modules remain installed. I can then start XF86 4.2.99 with the modules
installed by 4.2.0 and have DRI and glxgears work great. So I have come
to the conclusion (of course I could be wrong) that the 4.2.99 version
of XF86 loads the DRI or agpgart modules incorrectly.

If I have overlooked something that I should try please let me know. If
this isn't suppose to be supported yet and I just have to deal with
Indirect rendering pelase let me know. Please just let me know anything,
I have played around with this for a long time and it is becoming an
obsession which needs to die so I can acutally do work.

Thanks for you time,
Diek Van Nort




A few more outputs that might be of interest.............

The thing that I find interesting is the "OpenGL version string:" When I
try to load the modules manually I get 1.2 Mesa 4.0.2, when the modules
fail to laod I get "1.3 Mesa 4.0.2" Could it be that DRI is trying to
load the wrong version of OpenGL Mesa API?

The output of 'glxinfo' when I load the drivers manual is as follows:

name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: VA Linux Systems Inc.
OpenGL renderer string: Mesa DRI G400 20020221 AGP 1x x86/MMX/3DNow!
OpenGL version string: 1.2 Mesa 4.0.2
OpenGL extensions:
GL_ARB_multitexture, GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_bgra,
GL_EXT_clip_volume_hint, GL_EXT_compiled_vertex_array,
GL_EXT_packed_pixels, GL_EXT_polygon_offset, GL_EXT_rescale_normal,
GL_EXT_texture3D, GL_EXT_texture_env_add, GL_EXT_texture_object,
GL_EXT_vertex_array, GL_IBM_rasterpos_clip, GL_MESA_window_pos,
GL_NV_texgen_reflection
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

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
----------------------------------------------------------------------
0x23 24 tc 0 24 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x24 24 tc 0 24 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x25 24 tc 0 24 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x26 24 tc 0 24 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x27 24 tc 0 24 0 r y . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x28 24 tc 0 24 0 r . . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x29 24 tc 0 24 0 r y . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x2a 24 tc 0 24 0 r . . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x2b 24 dc 0 24 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2c 24 dc 0 24 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2d 24 dc 0 24 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2e 24 dc 0 24 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2f 24 dc 0 24 0 r y . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x30 24 dc 0 24 0 r . . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x31 24 dc 0 24 0 r y . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x32 24 dc 0 24 0 r . . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow

The output of 'glxinfo' when the DRI and agp modules fail to load is as
follows:

name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.2
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

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
----------------------------------------------------------------------
0x23 24 tc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0x24 24 tc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None
0x25 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0x26 24 dc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None




_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to