Hello, Master Paul :)

> > I'm trying to get a few programs running which require the
ARB_multitexture
> > extension, while using hardware acceleration.
> Which hardware?

I meant direct rendering using the mga driver... I'm running RedHat 7.2,
kernel 2.4.18, with an Millenium G200.

> > I haven't found any
> > config files to enable them, only the extensions.c file, which I tried
> > modifying but all that crashed X, which I had expected.
> It sounds like you might be using indirect rendering.

This is more precisely what I've done: Once I had direct rendering working
(confirmed by glxinfo and the gears program running at probably 100fps, I
don't remember exactly), I tried getting the ARB_multitexture extension
working. I looked around for config files, but couldn't find any. So I
modified xc/extras/Mesa/src/extensions.c which contains
[...]
} default_extensions[] = {
{ OFF, "GL_ARB_imaging", F(ARB_imaging) },
{ OFF, "GL_ARB_multisample", F(ARB_multisample) },
{ OFF, "GL_ARB_multitexture", F(ARB_multitexture) },
{ OFF, "GL_ARB_texture_border_clamp", F(ARB_texture_border_clamp) },
{ OFF, "GL_ARB_texture_compression", F(ARB_texture_compression) },
{ OFF, "GL_ARB_texture_cube_map", F(ARB_texture_cube_map) },
{ OFF, "GL_ARB_texture_env_add", F(EXT_texture_env_add) },
[...]

I changed OFF to ON just to see what it did on the multitexture related
line, recompiled, restarted X: glxinfo showed that ARB_multitexture was
loaded and that direct rendering was still enabled. I tried a test program
which used this extension, and I don't remember if this killed X, or whether
it gave some error and quit, in any case, it didn't work... not much of a
surprise when you try poking around like this.

> When using indirect rendering, all three of the client side libGL,
> server side GLX decoder and server-side rendering engine (Mesa) must
> support an extension in order for it to be advertised to the user.

I built the tree from CVS and did a make install directly into my /usr/X11R6
directory (RedHat 7.2 comes with XFree86 4.1.0). Does this create version
incompatibility problems? I just noticed from looking at my glxinfo that my
glu is still Mesa 3.4.2, while libGL is 4.0.2.

... a few hours later ...

I tried to figure out how to compile the DRI tree and have it use the newer
GLU, but remained unsuccessful. So I tried installing the distribution
version of XFree 4.2.0 just to see what it does, and yes, glxinfo says
direct rendering enabled, with ARB_multitexture loaded, and confirmed this
with a few tests, everything worked well.

So is it just a matter of updating the glu to version 4.0.2? If yes, then
can you give me hint on how to do this?

> What is the output of glxinfo?
the entire thing:
_________________
display: :0.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 G200 20020221 AGP 1x x86/MMX/3DNow!
OpenGL version string: 1.2 Mesa 4.0.2
OpenGL extensions:
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_object, GL_EXT_vertex_array,
GL_IBM_rasterpos_clip, GL_MESA_window_pos, GL_NV_texgen_reflection
glu version: 1.1 Mesa 3.4.2
glu extensions:
GL_EXT_abgr
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 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x24 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x25 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x26 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x27 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x28 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x29 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x2a 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x2b 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x2c 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x2d 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x2e 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x2f 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x30 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x31 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x32 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
_________________


Thanks,

-Kai



_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to