LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-22-2008, 07:48 AM   #1
johnnysd455
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
Extremely poor 3D performance ATI X1650Pro


I honestly wasn't sure whether to put this here or in games, but it doesn't necessarily pertain to gaming.

I finally got my X1650Pro working under X after a bunch of headaches. I had to get agpgart/via_agp/drm/radeon as modules, for some reason it wouldn't work when compiled into the kernel. After that I still had some error messages about AIGLX:

Code:
(EE) AIGLX error: dlsym for __driCreateNewScreen_20050727 failed (/usr/lib/xorg/modules/dri/r300_dri.so: undefined symbol: __driCreateNewScreen_20050727)
Someone suggested I get a new X server, so I went and grabbed the server.. that necessitated Mesa 7.2, fine. Ooops, need libdrm 2.3.1 or better! Go at it. Build 7.2, copy the libs, make some new symlinks, configure still says I have 7.0.2. Wtf? The way that pkg-config works is probably one of the stupidest things I've ever seen. Get that going. Configure finishes for xorg 1.5.1, go to make it.. I have compile errors (bad header somewhere?), I give up on 1.5 for the night. Now I'm trying to try out the cool new direct rendering, so I load up Alien Arena.

GL_VENDOR: DRI R300 Project
GL_RENDERER: Mesa DRI R300 20060815 AGP 4x x86/MMX+/3Dnow!+/SEE TCL

Cool! X finally started and isn't slow as crap and I might actually be able to play a game?! AWESOME!

So I get 0.5fps once in the game. Try disabling shaders, shadows, etc.. no good.

dmesg output:
Code:
[   11.218707] Linux agpgart interface v0.103
[   60.280479] agpgart: Detected VIA KT400/KT400A/KT600 chipset
[   60.295884] agpgart-via 0000:00:00.0: AGP aperture is 256M @ 0xe0000000
[  101.519202] [drm] Initialized drm 1.1.0 20060810
[  101.689753] [drm] Initialized radeon 1.29.0 20080528 on minor 0
[  125.503156] agpgart-via 0000:00:00.0: AGP 3.5 bridge
[  125.503188] agpgart-via 0000:00:00.0: putting AGP V3 device into 4x mode
[  125.503257] pci 0000:01:00.0: putting AGP V3 device into 4x mode
[  125.927214] [drm] Setting GART location based on new memory map
[  125.927229] [drm] Loading R500 Microcode
[  125.927265] [drm] Num pipes: 1
[  125.927274] [drm] writeback test succeeded in 1 usecs
lspci:

Code:
01:00.0 VGA compatible controller: ATI Technologies Inc RV535 [Radeon X1650 Series] (rev 9e) (prog-if 00 [VGA controller])
        Subsystem: PC Partner Limited Unknown device 0850
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 128 (2000ns min), Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at c0000000 (32-bit, prefetchable) [size=256M]
        Region 1: I/O ports at 9800 [size=256]
        Region 2: Memory at dfef0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at dfec0000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [58] AGP version 3.0
                Status: RQ=256 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3+ Rate=x4,x8
                Command: RQ=32 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW+ Rate=x4
        Capabilities: [80] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
                Address: 0000000000000000  Data: 0000

01:00.1 Display controller: ATI Technologies Inc RV535 [Radeon X1650 Series] (rev 9e)
        Subsystem: PC Partner Limited Unknown device 0851
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 128 (2000ns min), Cache Line Size: 32 bytes
        Region 0: Memory at dfee0000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Some of the result of grep "RADEON\|drm" Xorg.0.log.. lots edited out:

Code:
(II) RADEON: Driver for ATI Radeon chipsets:
        ATI Mobility Radeon HD 2400, ATI RADEON E2400, ATI RV610, ATI RV670,
(WW) RADEON: No matching Device section for instance (BusID PCI:1:0:1) found
(II) RADEON(0): MMIO registers at 0x00000000dfef0000: size 64KB
(II) RADEON(0): PCI bus 1 card 0 func 0
(**) RADEON(0): Depth 24, (--) framebuffer bpp 32
(II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
(==) RADEON(0): Default visual is TrueColor
(**) RADEON(0): Option "BusType" "AGP"
(**) RADEON(0): Option "AGPFastWrite" "1"
(**) RADEON(0): Option "EnablePageFlip" "1"
(**) RADEON(0): Option "AccelMethod" "EXA"
(**) RADEON(0): Option "DRI" "1"
(II) RADEON(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(==) RADEON(0): RGB weight 888
(II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
(--) RADEON(0): Chipset: "ATI Radeon X1650" (ChipID = 0x71c7)
(WW) RADEON(0): R500 support is under development. Please report any issues to xorg-driver-ati@lists.x.org
(--) RADEON(0): Linear framebuffer at 0x00000000c0000000
(--) RADEON(0): BIOS at 0xdfec0000
(II) RADEON(0): AGP card detected
(**) RADEON(0): Forced into AGP mode
(II) RADEON(0): [dri] Found DRI library version 1.3.0 and kernel module version 1.29.0
(**) RADEON(0): Page Flipping disabled on r5xx and newer chips.
(II) RADEON(0): Will try to use DMA for Xv image transfers
(II) RADEON(0): Generation 2 PCI interface, using max accessible memory
(II) RADEON(0): Detected total video RAM=524288K, accessible=262144K (PCI BAR=262144K)
(--) RADEON(0): Mapped VideoRAM: 262144 kByte (128 bit DDR SDRAM)
(**) RADEON(0): Using EXA acceleration architecture
(II) RADEON(0): Allocating from a screen of 262144 kb
(II) RADEON(0): Will use 32 kb for hardware cursor 0 at offset 0x009c4000
(II) RADEON(0): Will use 32 kb for hardware cursor 1 at offset 0x009c8000
(II) RADEON(0): Will use 10000 kb for front buffer at offset 0x00000000
(II) RADEON(0): Will use 10000 kb for back buffer at offset 0x009cc000
(II) RADEON(0): Will use 10000 kb for depth buffer at offset 0x01390000
(II) RADEON(0): Will use 115712 kb for textures at offset 0x01d54000
(II) RADEON(0): Will use 116400 kb for X Server offscreen at offset 0x08e54000
(II) RADEON(0): [drm] Using the DRM lock SAREA also for drawables.
(II) RADEON(0): [drm] framebuffer handle = 0xc0000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): X context handle = 0x1
(II) RADEON(0): [drm] installed DRM signal handler
(==) RADEON(0): Using AGP 4x
(WW) RADEON(0): WARNING: Using the AGPFastWrite option is not recommended.
(**) RADEON(0): Enabling AGP Fast Writes.
(II) RADEON(0): [agp] Mode 0x1f000a19 [AGP 0x1106/0x3189; Card 0x1002/0x71c7]
Soo.. what can I do?!

Limited to 256MB out of the 512MB, bleh. :\ I just noticed it's using all of the VRAM it can access. I'm about to try to tell it to piss off and that that's stupid.. hopefully it helps, but I guess we'll see. What else can I do?
 
Old 11-22-2008, 09:08 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
glxinfo | more

direct rendering: Yes
(Shows that you have acceleration.)

GL_RENDERER: Mesa DRI R300 20060815 AGP 4x x86/MMX+/3Dnow!+/SEE TCL
(Shows that you're using software acceleration (Mesa3D.org), see dpkg-divert below.)


glxgears -printfps
(or -info depending on debian version)

AFAIK, ATI acceleration (from ATI) does NOT work (yet) with AIGLX. Or compiz / beryl / compiz-fusion / .....
(in your xorg.conf)
Section "ServerLayout"
...
Option "AIGLX" "false"
...
EndSection

Section "Extensions"
Option "Composite" "false"
EndSection


dpkg-divert
(if you installed via a debian package)
(Should show that it conflicts with Mesa at /usr/lib/libGL.*, and put ATI's version in /usr/lib/fglrx/*)
(Replace Mesa's drivers with ATI's to actually get 3D acceleration.)
(If you don't want to use ATI's drivers then keep Mesa's versions.)
(location may vary depending on ATI driver in use.)


http://ati.amd.com/support/drivers/l...ux-radeon.html

For my system at least relative to that driver. And don't forget about aticonfig to setup some of the other things in your xorg.conf. VideoOverlay / OpenGLOverlay / ....
 
Old 11-22-2008, 11:32 PM   #3
johnnysd455
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Heh, I'm not using fglrx, should've been able to tell from my Xorg log.. but I'm using the open source driver (radeon).

"GL_RENDERER: Mesa DRI R300 20060815 AGP 4x x86/MMX+/3Dnow!+/SEE TCL"

This seems to be a problem with ONLY Alien Arena 2008, as I just tried Enemy Territory and got 100fps at 1280x1024 with max settings. How would I get 100fps with a software renderer?

Also, glxinfo | grep direct:
direct rendering: Yes

ATI Catalyst drivers won't compile the fglrx module for my system anyway, not even 8.10 w/ the patch for 2.6.27 kernels (I'm using 2.6.27-7). 8.11 compile errors are even worse. No, I'm NOT missing dependencies.

As I said, I compiled libGL, that's what Mesa is. So, Mesa/libGL 7.2.0 with modules for Radeon cards (ie r300_dri.so).

I changed it so AIGLX/Composite are both set to false, but that won't actually change the behavior of my X server.. I just don't get the warnings in the log.

I was very tired when I wrote this post, I should note:

Distro - Slackware 12.1
Kernel - Linux 2.6.27-7
CPU - AMD Thoroughbred-B XP 2100+ @ 1733MHz
Motherboard - MSI KT4VL, VIA KT400A chipset
Memory - 1GB DDR PC3200
Video card - Sapphire X1650 Pro AGP 8x/512mb, RV535
X server - v1.4.0.90
libGL/Mesa - v7.2.0
libdrm - v2.3.1
xf86-video-ati - v6.9.0

For fun.. output of glxgears, default window size:
Code:
GL_RENDERER   = Mesa DRI R300 20060815 AGP 8x x86/MMX+/3DNow!+/SSE TCL
GL_VERSION    = 1.3 Mesa 7.2
GL_VENDOR     = DRI R300 Project
GL_EXTENSIONS = GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_point_
parameters 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_MESAX_texture_float GL_AR
B_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
_logic_op 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_gpu_program_parameters GL_EXT_histogram GL_EXT_multi_draw_arrays GL_EXT_packed_pixels 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_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_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_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_NV_vertex_program 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 GL_SGIX_depth_texture GL_SGIX_shadow_ambient GL_SUN_multi_draw_arrays
10339 frames in 5.0 seconds = 2067.722 FPS

Last edited by johnnysd455; 11-23-2008 at 12:59 AM.
 
Old 11-23-2008, 12:07 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
Quote:
Originally Posted by johnnysd455 View Post
I was very tired when I wrote this post, I should note:

Distro - Slackware 12.1
Kernel - Linux 2.6.27-7
CPU - AMD Thoroughbred-B XP 2100+ @ 1733MHz
Motherboard - MSI KT4VL, VIA KT400A chipset
Memory - 1GB DDR PC3200
Video card - Sapphire X1650 Pro AGP 8x/512mb, RV535
X server - v1.4.0.90
libGL/Mesa - v7.2.0
libdrm - v2.3.1
xf86-video-ati - v6.9.0
freeglut?

Unfortunately 3D is mix of many things. Mesa provides software equivalents for hardware that either doesn't have it, or doesn't have linux support for it. I'm not sure of the state of the radeon driver for that chipset. But for my laptop, it seems to be 2D hardware acceleration only.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sluggish and poor performance from ATI Mobility P/M with Kubuntu 7.04 Jay Jay Linux - Laptop and Netbook 4 08-31-2007 09:44 PM
Extremely poor disk performance on SCSI RAID Yalla-One Linux - Hardware 5 03-29-2007 08:04 PM
Extremely poor SATA performance (Inappropriate ioctl for device) kyletriggs Linux - Hardware 7 02-14-2006 01:14 AM
Extremely poor cedega performance king111 Linux - Games 1 07-15-2005 08:48 PM
Unusually Poor ATi Performance 2uantuM Linux - Hardware 13 11-02-2004 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration