All times are UTC-06:00




Post new topic  Reply to topic  [ 16 posts ] 
Author Message
 Post subject: howto setup 3d for ati?
PostPosted: Thu Feb 22, 2007 1:38 pm 
Offline

Joined: Sun Jan 14, 2007 8:01 am
Posts: 187
I am having trouble setting up 3D with my ati radeon 9250SE.
First time running glxgears i got below 1fps. The gears were not moving at all. Not even after adding the pci option. After adding details on the specific board i can seem the gears move, but slowly. On my first install of linux on the efika i had them moving faster. Running tux (ppracer) with fps option i get around 5 to 8 fps? Is the fastest i can get?

What are my other options at getting better fps? I have a feeling this card must be able to do better even on ppc. I am using xorg.

My xorg.conf
Code:
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
EndSection

Section "Device"
Identifier "ATI Technologies Inc RV280 [Radeon 9200 PRO]"
Driver "radeon"
VendorName "ATI"
BoardName "ATI Radeon 9250SE"
BusID "PCI:0:16:0"
Option "UseFBDev" "false"
Option "AccelMethod" "XAA"
Option "BusType" "PCI"
Option "EnablePageFlip" "1"
Option "ColorTiling" "1"
endSection

Section "Monitor"
Identifier "SyncMaster"
Option "DPMS"
HorizSync 30-81
VertRefresh 56-75
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies Inc RV280 [Radeon 9200 PRO]"
Monitor "SyncMaster"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1272x1017" "1024x768" "880x660" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1272x1017" "1024x768" "880x660" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1272x1017" "1024x768" "880x660" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1272x1017" "1024x768" "880x660" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1272x1017" "1024x768" "880x660" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1272x1017" "1024x768" "880x660" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "DRI"
Mode 0666
EndSection
The results glxinfo:
Code:
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_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_allocate_memory,
GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_video_sync,
GLX_SGIS_multisample, GLX_SGIX_fbconfig
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI R200 20060602 TCL
OpenGL version string: 1.3 Mesa 6.5.1
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
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_rectangle, GL_ARB_transpose_matrix,
GL_ARB_vertex_buffer_object, 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_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture,
GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_histogram,
GL_EXT_packed_pixels, GL_EXT_polygon_offset, GL_EXT_rescale_normal,
GL_EXT_secondary_color, GL_EXT_separate_specular_color,
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_filter_anisotropic, 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_blend_equation_separate, GL_ATI_texture_env_combine3,
GL_ATI_texture_mirror_once, GL_ATI_fragment_shader, GL_IBM_rasterpos_clip,
GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_MESA_window_pos,
GL_NV_blend_square, GL_NV_light_max_exponent, GL_NV_texture_rectangle,
GL_NV_texgen_reflection, GL_OES_read_format, 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
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 32 0 r y . 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 24 0 0 0 0 0 0 0 None
0x25 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x26 24 tc 0 32 0 r y . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0x27 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x28 24 tc 0 32 0 r . . 8 8 8 8 0 24 0 0 0 0 0 0 0 None
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 . . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0x2b 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2c 24 dc 0 32 0 r y . 8 8 8 8 0 24 0 0 0 0 0 0 0 None
0x2d 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x2e 24 dc 0 32 0 r y . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0x2f 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x30 24 dc 0 32 0 r . . 8 8 8 8 0 24 0 0 0 0 0 0 0 None
0x31 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x32 24 dc 0 32 0 r . . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow


Last edited by mvdhoning on Thu Feb 22, 2007 1:55 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Thu Feb 22, 2007 1:54 pm 
Check that 3D is enabled by doing the following command :

glxinfo | grep rendering
The answer for "Direct rendering" should be "Yes".

If not, check that "dri" is loaded into your kernel or as a module and that you have enabled the ATI drivers.
Then reboot (or it won't work) and run the above command again.

If it still does not work, check also your /etc/X11/xorg.conf file.
"glx" module must be loaded :
Code:
Section "module"
Load "glx"
Also "radeon" driver loaded and "BusType" option enabled :
Code:
Section "Device"
Option "BusType" "PCI"
Driver "radeon"
Hope that helps...

I'm running Chromium on my Efika under Linux Gentoo and 3D works perfectly.
By the way which distrib are you using ? Gentoo ? Debian ?


Top
   
 Post subject:
PostPosted: Thu Feb 22, 2007 1:58 pm 
Offline

Joined: Sun Jan 14, 2007 8:01 am
Posts: 187
I edited my first post to include my xorg.conf and a dump of the results for glxinfo.

I am using debian (unstable i think).

What fps are you getting on tux (ppracer)?


Top
   
 Post subject:
PostPosted: Thu Feb 22, 2007 2:40 pm 
3D rendering seems ok on your config.

So with Debian, are you running Gnome or another desktop ?
Is your system completly slow or only the 3D apps ?
I must admit that I haven't tried 3D apps with Debian. (I don't think it's optimized for a G3 cpu but only for a common ppc arch).

I don't have tux installed (and no Efika under my hand atm) so I can't check fps.


Top
   
 Post subject:
PostPosted: Thu Feb 22, 2007 3:32 pm 
Offline

Joined: Sun Jan 14, 2007 8:01 am
Posts: 187
I am using xfce4 as gnome is to slow. Even with xfce screen redraws in 2d are sometimes sloppy.


Top
   
 Post subject:
PostPosted: Thu Feb 22, 2007 5:33 pm 
Offline

Joined: Sun May 08, 2005 8:46 pm
Posts: 559
Location: Paris
fluxbox runs smooth

anyone tried e17 on Efika ?


Top
   
 Post subject:
PostPosted: Fri Feb 23, 2007 1:15 am 
Offline

Joined: Fri Sep 24, 2004 1:39 am
Posts: 297
I built e17 together with xorg last night on a new
gentoo install.
Will tell later today how fast it is ;)

EDIT: mmh, "emerge e" didn't pull in whole xorg-x11 as i assumed it would. So no efika17 report before tomorrow...


Top
   
 Post subject:
PostPosted: Fri Feb 23, 2007 3:54 am 
Offline
Genesi

Joined: Mon Jan 30, 2006 2:28 am
Posts: 409
Location: Finland
Hi.
Quote:
So no efika17 report before tomorrow...
I will post something about E17 on EFIKA here then :-)

E17 works very nice on EFIKA. I believe it is faster than XFCE, but still slower than Fluxbox (everything is slower than Fluxbox ;-) It also uses more memory than Fluxbox, but given the added functionalities, it's worth it.
If you want a nice looking WM with lots of features and effects on EFIKA, E17 is great.


Best regards,
Johan

_________________
Johan Dams, Genesi USA Inc.
Director, Software Engineering

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Fri Feb 23, 2007 4:01 am 
Offline

Joined: Sun May 08, 2005 8:46 pm
Posts: 559
Location: Paris
thanks for the info ! i'll install it soon to see by myself :-)


Top
   
 Post subject:
PostPosted: Fri Feb 23, 2007 10:25 am 
Offline

Joined: Fri Sep 24, 2004 1:39 am
Posts: 297
Yes, it works even much faster than i expected :)
Next try will probably be metisse which works very nice on the peg :)


Top
   
 Post subject:
PostPosted: Sat Feb 24, 2007 4:29 pm 
Offline

Joined: Sun Jan 14, 2007 8:01 am
Posts: 187
My primary concern is the lack of fps in 3D. Looking on the video's on this site shows of much better fps on an efika (at the bottom): http://www.ppcnux.com/modules.php?name= ... e&sid=6614
Quote:
there was a 3D-accelerated playable Quake I demo achieving a very respectable 53 fps in 1280 x 1024 resolution. The third demo was the futuristic racing game classic WipEout 2097 at 800 x 600 res that made some bystander dizzy with its blazing speed.
Unfortunately there is no mention on what graphics card is used. But ati is mention earlier on in the article.

Anyway, i must be doing something wrong getting only 5 fps out of ppracer (tuxracer). But what?

Ps where can i get WipeOut for ppc linux?


Top
   
 Post subject:
PostPosted: Mon Feb 26, 2007 3:54 pm 
Hi !

ppracer is also very slow here under Debian :-(
I will try it later under Gentoo and will tell you if it works well or not...


Top
   
 Post subject:
PostPosted: Tue Feb 27, 2007 12:03 pm 
Offline

Joined: Sun Jan 14, 2007 8:01 am
Posts: 187
Looking up radeonfb in the syslogs i find that memory is only running at 40mhz. It could be part of the slownes, but i am not sure.

Looking for an overclock tool i found rovclock (http://www.hasw.net/linux/) but i cannot get it to compile due to missing sys/io.h (not available for powerpc?) , using asm/io.h does not solve it.

geoffrey_charra: what is your memory speed? and did you get better results under gentoo?


Top
   
 Post subject:
PostPosted: Tue Feb 27, 2007 12:50 pm 
Quote:
Looking up radeonfb in the syslogs i find that memory is only running at 40mhz. It could be part of the slownes, but i am not sure.

Looking for an overclock tool i found rovclock (http://www.hasw.net/linux/) but i cannot get it to compile due to missing sys/io.h (not available for powerpc?) , using asm/io.h does not solve it.

geoffrey_charra: what is your memory speed? and did you get better results under gentoo?
I don't know, but I think that overclocking is NOT a good idea.


Last edited by lugduweb on Wed Feb 28, 2007 6:17 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Tue Feb 27, 2007 7:51 pm 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
Looking up radeonfb in the syslogs i find that memory is only running at 40mhz. It could be part of the slownes, but i am not sure.

Looking for an overclock tool i found rovclock (http://www.hasw.net/linux/) but i cannot get it to compile due to missing sys/io.h (not available for powerpc?) , using asm/io.h does not solve it.

geoffrey_charra: what is your memory speed? and did you get better results under gentoo?
sys/io.h contains functions which handle the difference on Intel architectures between IO accesses and memory-mapped accesses. On PowerPC, everything is memory-mapped and there is no distinction.

You can replace the sys/io.h macros and functions with simple loads and stores, actually I have a replacement file somewhere.. here.. that fixes it.. somewhere :)

_________________
Matt Sealey


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 16 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 7 guests


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

Search for:
Jump to:  
cron
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group