HOW-TO: ProSavage, SuperSavage DDR and dri-drm 3d drivers
|
View unanswered posts
View posts from last 24 hours
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Next
|
View previous topic :: View next topic |
Author |
Message |
brigantesemore n00b


Joined: 19 Jan 2004 Posts: 4
|
Posted: Wed Mar 10, 2004 8:13 pm Post subject: HOW-TO: ProSavage, SuperSavage DDR and dri-drm 3d drivers |
|
|
Hi , finally after a lot of time I reach to make my ProSavage TwisterK to work... with dri.
I hear that works with SuperSavage too and DRR version
The driver works for all ProSavage video cards...
I used kernel 2.6.3
I post the glxinfo output:
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_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_SGI_make_current_read, GLX_SGIS_multisample
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: S3 Graphics Inc.
OpenGL renderer string: Mesa DRI SAVAGE Linux_1.1.18
OpenGL version string: 1.2 Mesa 5.0.2
OpenGL extensions:
GL_ARB_multitexture, GL_ARB_transpose_matrix, GL_ARB_window_pos,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_copy_texture,
GL_EXT_draw_range_elements, GL_EXT_packed_pixels, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_separate_specular_color, GL_EXT_subtexture,
GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_env_add,
GL_EXT_texture_object, GL_EXT_texture_lod_bias, GL_EXT_vertex_array,
GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip, GL_MESA_window_pos,
GL_NV_texgen_reflection, GL_SGIS_texture_lod
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 1 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x24 24 tc 1 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x25 24 tc 1 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x26 24 tc 1 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x27 24 tc 1 32 0 r y . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x28 24 tc 1 32 0 r . . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x29 24 tc 1 32 0 r y . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x2a 24 tc 1 32 0 r . . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x2b 24 dc 1 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2c 24 dc 1 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2d 24 dc 1 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2e 24 dc 1 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2f 24 dc 1 32 0 r y . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x30 24 dc 1 32 0 r . . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x31 24 dc 1 32 0 r y . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x32 24 dc 1 32 0 r . . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
#######
bash-2.05b$ dmesg | grep drm
[drm] Initialized savage 1.0.0 20011023 on minor 0: ProSavage KN133
#######
and how to make it works...
download from cvs ( u need to emerge cvs ) the branch of xfree for savage
cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri login
on passwd hit enter
cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri co -r savage-2-0-0-branch xc
in the directory where u downloaded the cvs version of x go in xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel
and
make -f Makefile.linux
it makes the drm modules for the kernel (you need the modules agpgart (agp support) and and the module for your agp-chipset (via-agp,inte... etc) or compile it inside the kernel)
copy the *.ko in /lib/modules/$KERNEL/kernel/drivers/char/drm
depmod -a
come back to xc/xc directory and
make World #it compile the CVS-xfree
at the end
make install #it install on your xfree the new-one (XF86Config and the other configuration file are untouched)
ok let's go configure the new xfree
nano -w /etc/X11/XF86Config
in Section "Module" add
Load "dri"
and
uncomment
Section "DRI"
Mode 0666
EndSection
ok save and exit
let's go make the kernel modules load at the boot time
nano -w /etc/modules.autoload.d/kernel-2.6
add
for who compiled the agp support and the chipsetAGP in modules...
agpgart
intel-agp or via-agp ... (depends on your agp-chipset]
for everybody the drm-module
savage
ok .. save and exit
reboot!
bye
Last edited by brigantesemore on Tue Mar 16, 2004 4:35 am; edited 3 times in total |
|
Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Thu Mar 11, 2004 12:02 am Post subject: |
|
|
So in addition to the savage driver, you also end up with the latest cvs version of xfree86, correct? Do you think it's possible to just build the driver and get it to work with the 4.3.99.902-r1? I may try that this evening before I build a whole new xfree... I'll let you know how it goes.
Thanks for this, I also have a TwisterK that I'm trying to get to work with DRI. |
|
Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Mon Mar 15, 2004 1:31 am Post subject: |
|
|
I got the savage driver compiled from CVS to load with xfree-4.3.99.902:
lappy root # glxinfo
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,
GLX_SGI_make_current_read
client glx vendor string: SGI
client glx version string: 1.2
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_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_visual_select_group
GLX extensions:
GLX_ARB_get_proc_address, GLX_EXT_import_context, GLX_EXT_visual_info,
GLX_EXT_visual_rating
OpenGL vendor string: S3 Graphics Inc.
OpenGL renderer string: Mesa DRI SAVAGE Linux_1.1.18
OpenGL version string: 1.2 Mesa 5.0.2
OpenGL extensions:
GL_ARB_multitexture, GL_ARB_transpose_matrix, GL_ARB_window_pos,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_copy_texture,
GL_EXT_draw_range_elements, GL_EXT_packed_pixels, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_separate_specular_color, GL_EXT_subtexture,
GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_env_add,
GL_EXT_texture_object, GL_EXT_texture_lod_bias, GL_EXT_vertex_array,
GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip, GL_MESA_window_pos,
GL_NV_texgen_reflection, GL_SGIS_texture_lod
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 1 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x24 24 tc 1 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x25 24 tc 1 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x26 24 tc 1 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x27 24 tc 1 32 0 r y . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x28 24 tc 1 32 0 r . . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x29 24 tc 1 32 0 r y . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x2a 24 tc 1 32 0 r . . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x2b 24 dc 1 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2c 24 dc 1 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2d 24 dc 1 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2e 24 dc 1 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2f 24 dc 1 32 0 r y . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x30 24 dc 1 32 0 r . . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x31 24 dc 1 32 0 r y . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x32 24 dc 1 32 0 r . . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
I tried it both this way, by coping over the driver modules and the kernel module and by installing the CVS version from the savage-2-0-0 branch. I'm still getting only a little less than 90 FPS in glxgears either way. What driver should I sepcify in my XF86 config? savage, correct? Also, with the copied over driver, dvd playback became choppier and slower.
edit: It does, however, appear to actually think it's using DRI both ways. So, it looks like you can copy the driver and kernel module from CVS to the last masked xfree version n portage. |
|
Back to top |
|
 |
brigantesemore n00b


Joined: 19 Jan 2004 Posts: 4
|
Posted: Mon Mar 15, 2004 7:26 pm Post subject: |
|
|
savage is the right module.
I heard that the way to improve performances is to build it with the last Mesa (libGL.so). If someone reach to do it... let me know.
Ciao |
|
Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
|
Back to top |
|
 |
JohnY Apprentice

Joined: 26 Jul 2002 Posts: 286
|
Posted: Tue Mar 16, 2004 12:01 am Post subject: |
|
|
Does 4.3.0-r6 build the latest mesa? I built it last night to fool with gatos and a Radeon AIW and it built fine here. There was a call for testers on the gentoo-dev list.
JohnY |
|
Back to top |
|
 |
brigantesemore n00b


Joined: 19 Jan 2004 Posts: 4
|
Posted: Tue Mar 16, 2004 4:30 am Post subject: |
|
|
I reached to built it with the MesaCVS (ver6.1) but the performances are the same...
No more ideas...
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_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
GLX_SGIS_multisample, GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.2
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_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_visual_select_group
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIS_multisample
OpenGL vendor string: S3 Graphics Inc.
OpenGL renderer string: Mesa DRI SAVAGE Linux_1.1.18
OpenGL version string: 1.2 Mesa 6.1
OpenGL extensions:
GL_ARB_multitexture, GL_ARB_texture_env_add, GL_ARB_transpose_matrix,
GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_copy_texture,
GL_EXT_draw_range_elements, GL_EXT_packed_pixels, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_separate_specular_color, GL_EXT_subtexture,
GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_add, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
GL_EXT_vertex_array, GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip,
GL_MESA_window_pos, GL_NV_light_max_exponent, GL_NV_texgen_reflection,
GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod
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 1 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x24 24 tc 1 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x25 24 tc 1 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x26 24 tc 1 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x27 24 tc 1 32 0 r y . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x28 24 tc 1 32 0 r . . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
0x29 24 tc 1 32 0 r y . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x2a 24 tc 1 32 0 r . . 8 8 8 8 0 24 8 16 16 16 0 0 0 Slow
0x2b 24 dc 1 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2c 24 dc 1 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2d 24 dc 1 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2e 24 dc 1 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2f 24 dc 1 32 0 r y . 8 8 8 8 0 0 0 16 16 16 0 0 0 Slow
and glxgears:
711 frames in 5.0 seconds = 142.200 FPS
715 frames in 5.0 seconds = 143.000 FPS
707 frames in 5.0 seconds = 141.400 FPS
701 frames in 5.0 seconds = 140.200 FPS
bye |
|
Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Tue Mar 16, 2004 12:28 pm Post subject: |
|
|
I checked out the latest dri-cvs source, it didn't have the savage driver. How did you get the savage driver to build with the latest mesa?
Last edited by Gnufsh on Tue Mar 16, 2004 3:37 pm; edited 1 time in total |
|
Back to top |
|
 |
bmichaelsen Veteran


Joined: 17 Nov 2002 Posts: 1276 Location: Hamburg, Germany
|
|
Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Tue Mar 16, 2004 2:07 pm Post subject: |
|
|
I'm still not sure how to build using the latest mesa, could anyone hep me out with that?
On the other hand, setting it to 16-bit color with my current build (off the savage-2-0-0 branch) makes me go from 98 or so fps in glxgears to almost 250. Is this normal for reducing color depth, or do the dri drivers have problems with 24?
lappy root # glxinfo
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_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_SGI_make_current_read, GLX_SGIS_multisample
client glx vendor string: SGI
client glx version string: 1.2
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_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_visual_select_group
GLX extensions:
GLX_ARB_get_proc_address, GLX_EXT_import_context, GLX_EXT_visual_info,
GLX_EXT_visual_rating
OpenGL vendor string: S3 Graphics Inc.
OpenGL renderer string: Mesa DRI SAVAGE Linux_1.1.18
OpenGL version string: 1.2 Mesa 5.0.2
OpenGL extensions:
GL_ARB_multitexture, GL_ARB_transpose_matrix, GL_ARB_window_pos,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_copy_texture,
GL_EXT_draw_range_elements, GL_EXT_packed_pixels, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_separate_specular_color, GL_EXT_subtexture,
GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_env_add,
GL_EXT_texture_object, GL_EXT_texture_lod_bias, GL_EXT_vertex_array,
GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip, GL_MESA_window_pos,
GL_NV_texgen_reflection, GL_SGIS_texture_lod
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
----------------------------------------------------------------------
0x22 16 tc 1 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x23 16 tc 1 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x24 16 tc 1 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x25 16 tc 1 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x26 16 tc 1 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x27 16 tc 1 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x28 16 tc 1 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x29 16 tc 1 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
lappy root # glxgears
1143 frames in 5.0 seconds = 228.600 FPS
1243 frames in 5.0 seconds = 248.600 FPS
1244 frames in 5.0 seconds = 248.800 FPS
1243 frames in 5.0 seconds = 248.600 FPS
1245 frames in 5.0 seconds = 249.000 FPS
1244 frames in 5.0 seconds = 248.800 FPS |
|
Back to top |
|
 |
brigantesemore n00b


Joined: 19 Jan 2004 Posts: 4
|
Posted: Tue Mar 16, 2004 6:47 pm Post subject: |
|
|
For compiling with the last Mesa(v6.1) u have to download the CVS tree of xfree and no the savage branch
so.... here wath u have to do
cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri login (always hit return for passwd)
cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri co xc
cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/mesa login (always hit return for passwd)
cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/mesa co Mesa
edit host.def in xc/xc/config/cf
#define MesaSrcDir /path.to.Mesa.dir #change to MesaCVS-tree
---- keep attention to change the section of x86 in the follow two(there're 3 sections inside: for different arch)
#define XF86CardDrivers savage
#define DriDrivers savage
ok return in /xc/xc in the xfreeCVS-tree:
make World
and
make install
You can find the drm driver for kernel ... in xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel
Do as before to compile them... and install in the system...
(For 2.4.* kernel the way is the same ... only the kernel modules have *.o extention) |
|
Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Wed Mar 17, 2004 3:37 am Post subject: |
|
|
Ah, I was trying using the savage-2-0-0 branch. Whan I just checked out the dri cvs, it did not seem to include the savage driver. Well, time to try again.
Have you tried switching to 16-bit color? I've found that now, with this driver, on 16-bit color, tuxracer is playable and, like I said, I'm getting nearly 250fps in glxgears rather than just under 100fps.
edit: got about 20 more fps, thanks for the walkthrough:
lappy root # glxinfo
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_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
GLX_SGIS_multisample, GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.2
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_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_visual_select_group
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIS_multisample
OpenGL vendor string: S3 Graphics Inc.
OpenGL renderer string: Mesa DRI SAVAGE Linux_1.1.18
OpenGL version string: 1.2 Mesa 6.1
OpenGL extensions:
GL_ARB_multitexture, GL_ARB_texture_env_add, GL_ARB_transpose_matrix,
GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_copy_texture,
GL_EXT_draw_range_elements, GL_EXT_packed_pixels, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_separate_specular_color, GL_EXT_subtexture,
GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_add, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
GL_EXT_vertex_array, GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip,
GL_MESA_window_pos, GL_NV_light_max_exponent, GL_NV_texgen_reflection,
GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod
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
----------------------------------------------------------------------
0x22 16 tc 1 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x23 16 tc 1 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x24 16 tc 1 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x25 16 tc 1 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x26 16 tc 1 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x27 16 tc 1 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x28 16 tc 1 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x29 16 tc 1 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
lappy root # glxgears
1152 frames in 5.0 seconds = 230.400 FPS
1353 frames in 5.0 seconds = 270.600 FPS
1353 frames in 5.0 seconds = 270.600 FPS
1353 frames in 5.0 seconds = 270.600 FPS
1352 frames in 5.0 seconds = 270.400 FPS |
|
Back to top |
|
 |
Linux4All n00b

Joined: 17 Mar 2004 Posts: 7
|
Posted: Thu Mar 18, 2004 2:21 am Post subject: I hate to be the party pooper but... |
|
|
I followed the directions listed above and the kernel modules are built just fine but the make World dies (error 2) while making the Xv.c file. I was just wondering if I needed to use the 4.3.99 ebuild (I'm using the 4.3 rc-5 right now) so that headers and what not were compiled right or avaliable. I'm using the gentoo-development 2.6.3-rc2 kernel. I'm going to try again in a couple of days. Maybe the CVS version (yesterday) just had some stuff wrong.
Thanks |
|
Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Thu Apr 01, 2004 7:49 pm Post subject: |
|
|
Just FYI, it looks like there were some recent changes in DRI-CVS savage dirver that break dri:
daniel@lappy daniel $ glxinfo
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_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
GLX_SGIS_multisample, GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.2
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_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_visual_select_group
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIS_multisample,
GLX_SGIX_visual_select_group
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.1)
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multitexture,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
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_transpose_matrix, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
GL_EXT_blend_color, 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_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
GL_EXT_stencil_two_side, 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_object,
GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
GL_ATI_texture_mirror_once, GL_ATI_texture_env_combine3,
GL_IBM_texture_mirrored_repeat, GL_MESA_pack_invert,
GL_MESA_ycbcr_texture, GL_NV_blend_square, GL_NV_point_sprite,
GL_NV_texgen_reflection, GL_NV_texture_rectangle, 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
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
----------------------------------------------------------------------
0x22 16 tc 1 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x23 16 tc 1 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x24 16 tc 1 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x25 16 tc 1 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x26 16 tc 1 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x27 16 tc 1 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x28 16 tc 1 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x29 16 tc 1 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
It's using indirect rendering, but in my xfree log file:
(II) Module savage: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.1.27
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.7
it's using 1.1.27 instead of 1.1.18 like it used to, and the driver seems to think DRI is working:
(II) SAVAGE(0): Direct rendering enabled
(**) SAVAGE(0): XvMC is enabled
I'm not the only one with this problem:
http://marc.theaimsgroup.com/?l=dri-devel&m=108077845817775&w=2 |
|
Back to top |
|
 |
Theophile Apprentice

Joined: 31 Mar 2004 Posts: 285
|
Posted: Mon Apr 05, 2004 1:41 pm Post subject: |
|
|
I'm trying to get mine running, bat having trouble. Here's the card:
Code: | 01:00.0 VGA compatible controller: S3 Inc. 86c794 [Savage 3D] (rev 01) (prog-if 00 [VGA])
Subsystem: S3 Inc. 86C391 Savage3D
Flags: bus master, 66Mhz, medium devsel, latency 80, IRQ 11
Memory at c0000000 (32-bit, non-prefetchable) [size=128M]
Expansion ROM at cfef0000 [disabled] [size=64K]
Capabilities: [dc] Power Management version 1
Capabilities: [80] AGP version 1.0
|
I compiled X w/ kernel modules from CVS as detailed in the first post in the thread, changing the appropriate lines in XF86Config. When I startx, it loadgs the agpgart and savage kernel modules, but I still get no DRI. Here's an excerpt from the X startup log:
Code: | (II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Reloading /usr/X11R6/lib/modules/linux/libint10.a
(II) SAVAGE(0): initializing int10
(II) SAVAGE(0): Primary V_BIOS segment is: 0xc000
(II) SAVAGE(0): VESA BIOS detected
(II) SAVAGE(0): VESA VBE Version 2.0
(II) SAVAGE(0): VESA VBE Total Mem: 8192 kB
(II) SAVAGE(0): VESA VBE OEM: S3 Incorporated. 86C391
(II) SAVAGE(0): VESA VBE OEM Software Rev: 1.1
(II) SAVAGE(0): VESA VBE OEM Vendor: S3 Incorporated.
(II) SAVAGE(0): VESA VBE OEM Product: Savage3D
(II) SAVAGE(0): VESA VBE OEM Product Rev: Rev B
(--) SAVAGE(0): mapping framebuffer @ 0xc0000000 with size 0x800000
(==) SAVAGE(0): Write-combining range (0xc0000000,0x800000)
(II) SAVAGE(0): Splitting WC range: base: 0xc2000000, size: 0x5000000
(II) SAVAGE(0): Splitting WC range: base: 0xc4000000, size: 0x3000000
(==) SAVAGE(0): Write-combining range (0xc6000000,0x1000000)
(==) SAVAGE(0): Write-combining range (0xc4000000,0x3000000)
(==) SAVAGE(0): Write-combining range (0xc2000000,0x5000000)
(II) SAVAGE(0): map aperture:0x40b96000
(--) SAVAGE(0): Chose mode 117 at 60Hz.
(II) SAVAGE(0): [drm] bpp: 16 depth: 16
(II) SAVAGE(0): [drm] Sarea 2200+872: 3072
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card1
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card2
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card3
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card4
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card5
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card6
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card7
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card8
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card9
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card10
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card11
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card12
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card13
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card14
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
[drm] failed to load kernel module "savage"
(II) SAVAGE(0): [drm] drmOpen failed
(EE) SAVAGE(0): [drm] DRIScreenInit failed. Disabling DRI.
(EE) SAVAGE(0): DRI isn't enabled
(II) SAVAGE(0): Using 1280 lines for offscreen memory.
(II) SAVAGE(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
8x8 mono pattern filled rectangles
8x8 color pattern filled rectangles
Indirect CPU to Screen color expansion
Solid Lines
Image Writes
Offscreen Pixmaps
Setting up tile and stipple cache:
31 128x128 slots
12 256x256 slots
32 8x8 color pattern slots
(==) SAVAGE(0): Backing store disabled
(EE) SAVAGE(0): Direct rendering disabled
|
I tried getting the Mesa source from cvs and changing the Mesasrc line in the X Makefile, but it seems that Mesa CVS tree directory structure is a little different than it is expected to be and building fails. Any suggestions helpful. Thanks! |
|
Back to top |
|
 |
Theophile Apprentice

Joined: 31 Mar 2004 Posts: 285
|
Posted: Wed Apr 07, 2004 8:17 pm Post subject: |
|
|
Anyone? |
|
Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Fri Apr 09, 2004 1:02 pm Post subject: |
|
|
Are you sure you have the savage driver module loaded? Is drm working properly? You didn't compile drm into the kernel, did you?
Here's another tip. If you want to use prelinking, try adding this to your host.def file:
/* Need this to build libs with -fPIC */
#undef StaticNeedsPicForShared
#undef BuildLibGlxWithoutPIC
#define StaticNeedsPicForShared YES
#define BuildLibGlxWithoutPIC NO |
|
Back to top |
|
 |
abergou Tux's lil' helper


Joined: 12 Jun 2002 Posts: 85 Location: Ithaca, NY
|
Posted: Sat Apr 10, 2004 6:20 pm Post subject: |
|
|
Any idea how this would work with the new x.org XFree replacement? |
|
Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Tue Apr 20, 2004 3:27 am Post subject: |
|
|
I followed the instructions for installing on x.org here:
http://dri.sourceforge.net/cgi-bin/moin.cgi/Building
and it seems to be working. I have DRI enabled, and the same fps as before. I unmerged xfree, then merged xorg-x11 and copied the files over as described in the link, with one exception. libglx.a needs to be put in the correct place for open-gl update to find it, not where they tell you to, and then you need to run an opengl-update xorg-x11. |
|
Back to top |
|
 |
mrmodin Apprentice


Joined: 24 Jan 2004 Posts: 216 Location: Stockholm, Sweden
|
Posted: Tue Apr 20, 2004 6:49 pm Post subject: |
|
|
Nice, so now it's time to go from Xfree to x.org then. |
|
Back to top |
|
 |
mrmodin Apprentice


Joined: 24 Jan 2004 Posts: 216 Location: Stockholm, Sweden
|
Posted: Tue Apr 20, 2004 10:46 pm Post subject: |
|
|
And so I did, damn, I'm surpriced, Everything worked so smooth. Unmerge xfree emerge xorg-x11, restart x, etc-update, opengl-update xorg-x11, and everything work as normal (If not even better)  |
|
Back to top |
|
 |
anomole n00b


Joined: 16 Feb 2004 Posts: 5 Location: Brooklyn, NY
|
Posted: Wed Apr 21, 2004 3:28 am Post subject: |
|
|
Hi Folks,
Just thought I'd say that on my laptop (Savage/IX-MV) I must have the kernel modules loaded before I try to start X. If the savage module gets loaded before the agpgart and intel-agp modules, it still won't work, so at that point I have to reboot (I don't have kernel unloading compiled into my kernel).
To avoid this issue I auto-load the kernel agpgart modules (as this very helpful howto suggests). The savage module doesn't seem to like being loaded manually. I have to let xinit load it.
I was getting annoyed because I was manually loading these modules, so I knew they were loaded, but I was still getting no dri.
The above sequence works for me. Hopefully it will be helpful for someone.
In addition to this howto and the one in the gentoo docs, I found the building instructions at the dri wiki helpful. |
|
Back to top |
|
 |
mrmodin Apprentice


Joined: 24 Jan 2004 Posts: 216 Location: Stockholm, Sweden
|
Posted: Wed Apr 21, 2004 3:27 pm Post subject: |
|
|
anomole wrote: | Hi Folks,
Just thought I'd say that on my laptop (Savage/IX-MV) I must have the kernel modules loaded before I try to start X. If the savage module gets loaded before the agpgart and intel-agp modules, it still won't work, so at that point I have to reboot (I don't have kernel unloading compiled into my kernel).
To avoid this issue I auto-load the kernel agpgart modules (as this very helpful howto suggests). The savage module doesn't seem to like being loaded manually. I have to let xinit load it.
I was getting annoyed because I was manually loading these modules, so I knew they were loaded, but I was still getting no dri.
The above sequence works for me. Hopefully it will be helpful for someone.
In addition to this howto and the one in the gentoo docs, I found the building instructions at the dri wiki helpful. |
I had the exact problem with my IX-MV a while ago, but suddenly after a kernel-recompile (latest ck-sources at the moment) it worked just as it's supposed to again. (I have no idea why) |
|
Back to top |
|
 |
tHeoo n00b

Joined: 20 Mar 2003 Posts: 50 Location: Bammental, Deutschland
|
Posted: Thu May 13, 2004 7:28 pm Post subject: Stumbling TuxRacer |
|
|
It works now, yes. Nice. I've success with TuxRacer, BZflag, foobillard, Flightgear. Torcs is too slow (ProSavage8DDR) on an Acer 1312LC laptop.
I've a strange problem, though. When I start Tuxracer, it has stumbling performance. After running Bunny race several times, this problem disappears. Anyone else with this experience?
DRI version 20040502 (DRI snapshot installed)
X: XOrg-X11
Kernel: gentoo-dev-sources-2.6.5-r1
Graphical memory 32mb (main memory 512 minus 32 mb) |
|
Back to top |
|
 |
RoadRunner Bodhisattva


Joined: 12 Jun 2002 Posts: 490 Location: Coimbra, Portugal
|
Posted: Sat May 15, 2004 1:41 pm Post subject: |
|
|
I have a Savage MX and I folowed all these steps. The drivers build but whtn I try to load them I get an Invalid module format. I'm running mm-sources 2.6.6-mm2.
Anyone has an Idea what could be wrong? |
|
Back to top |
|
 |
|
 |
Gentoo Forums Forum Index
Documentation, Tips & Tricks |
All times are GMT Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Next
|
Page 1 of 10 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|