On Fri, Jan 09, 2004 at 11:51:18AM -0700, Brian Paul wrote:
> Olivier Chapuis wrote:
> >Hello,
> >
> >I use "current cvs" from 2003-12-17 (dri - Mesa-newtree) on an Ati
> >Mobility M7 LW. When dri is enabled (OpenGL renderer string: Mesa DRI
> >Radeon 20030328 AGP 4xTCL) I get a memory leak when I load and unload
> >a texture.
> >
> >Attached an example program. Put it in Mesa-newtree progs/tests and
> >add an entry in the good make file. Then, run it and look at the
> >memory usage. Each time you type 'r' in the window, the texture is
> >reloaded 100 times and here this program use 6M more memory (each time).
> >
> >This problem does not happen if LIBGL_ALWAYS_INDIRECT=1. This problem
> >does not happen with XFree-4.4.0-rc1.
> >
>
> Olivier,
>
> Can you try applying the attached patch to
> src/mesa/drivers/dri/radeon/radeon_tex.c
>
> It's not convenient for me to test.
>
Dear Paul and dri developers,
I just:
cvs update # in Mesa-newtree
cvs update # in dri/xc
make World
make install (over my XFree-4.4.0 RC2 install)
install the dri radeon.o linux kernel module
"Reboot"
Then, my X server exit when I execute any OpenGL apps (e.g., glxinfo).
Below, the relevant part of my XFree86.0.log file. I can give all
the info you want.
Regards, Olivier
XFree86.0.log:
...
XFree86 Version 4.3.99.12 (DRI trunk)
Release Date: 10 September 2003
...
(II) LoadModule: "glx"
(II) Loading /home/olivier/local/opt/X-4.4.0/lib/modules/extensions/libglx.a
(II) Module glx: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /home/olivier/local/opt/X-4.4.0/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension GLX
(II) LoadModule: "dri"
(II) Loading /home/olivier/local/opt/X-4.4.0/lib/modules/extensions/libdri.a
(II) Module dri: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /home/olivier/local/opt/X-4.4.0/lib/modules/linux/libdrm.a
(II) Module drm: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension XFree86-DRI
(II) LoadModule: "synaptics"
(II) Loading /home/olivier/local/opt/X-4.4.0/lib/modules/input/synaptics_drv.o
(II) Module synaptics: vendor="The XFree86 Project"
compiled for 4.2.0, module version = 1.0.0
Module class: XFree86 XInput Driver
ABI class: XFree86 XInput driver, version 0.3
(II) LoadModule: "radeon"
(II) Loading /home/olivier/local/opt/X-4.4.0/lib/modules/drivers/radeon_drv.o
(II) Module radeon: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 4.0.1
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.7
(II) LoadModule: "ati"
(II) Loading /home/olivier/local/opt/X-4.4.0/lib/modules/drivers/ati_drv.o
(II) Module ati: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 6.5.3
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.7
...
(II) Primary Device is: PCI 01:00:0
(--) Assigning device section with no busID to primary device
(--) Chipset ATI Radeon Mobility M7 LW (AGP) found
...
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenByBusid: drmOpenMinor returns 6
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) RADEON(0): [drm] DRM interface version 1.2
(II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:01:00.0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xd29c6000
(II) RADEON(0): [drm] mapped SAREA 0xd29c6000 to 0x40022000
(II) RADEON(0): [drm] framebuffer handle = 0xf0000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): [agp] Mode 0x1f000217 [AGP 0x8086/0x1a30; Card 0x1002/0x4c57]
(II) RADEON(0): [agp] 8192 kB allocated with handle 0x00000001
(II) RADEON(0): [agp] ring handle = 0xec000000
(II) RADEON(0): [agp] Ring mapped at 0x42250000
(II) RADEON(0): [agp] ring read ptr handle = 0xec101000
(II) RADEON(0): [agp] Ring read ptr mapped at 0x40024000
(II) RADEON(0): [agp] vertex/indirect buffers handle = 0xec102000
(II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0x42351000
(II) RADEON(0): [agp] GART texture map handle = 0xec302000
(II) RADEON(0): [agp] GART Texture map mapped at 0x42551000
(II) RADEON(0): [drm] register handle = 0xe8100000
(II) RADEON(0): [dri] Visual configs initialized
(II) RADEON(0): CP in BM mode
(II) RADEON(0): Using 8 MB GART aperture
(II) RADEON(0): Using 1 MB for the ring buffer
(II) RADEON(0): Using 2 MB for vertex/indirect buffers
(II) RADEON(0): Using 5 MB for GART textures
(II) RADEON(0): Memory manager initialized to (0,0) (1024,8191)
(II) RADEON(0): Reserved area from (0,768) to (1024,770)
(II) RADEON(0): Largest offscreen area available: 1024 x 7421
(II) RADEON(0): Will use back buffer at offset 0x900000
(II) RADEON(0): Will use depth buffer at offset 0xc00000
(II) RADEON(0): Will use 17408 kb for textures at offset 0xf00000
(II) RADEON(0): Using XFree86 Acceleration Architecture (XAA)
...
(II) RADEON(0): X context handle = 0x00000002
(II) RADEON(0): [drm] installed DRM signal handler
(II) RADEON(0): [DRI] installation complete
(II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers
(II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers
(II) RADEON(0): [drm] dma control initialized, using IRQ 9
(II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808
(II) RADEON(0): Direct rendering enabled
(==) RandR enabled
#NOT in the LOG !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Symbol _swsetup_choose_rastersetup_func from module
/home/olivier/local/opt/X-4.4.0/lib/modules/extensions/libGLcore.a is unresolved!
Symbol _swsetup_vb_init from module
/home/olivier/local/opt/X-4.4.0/lib/modules/extensions/libGLcore.a is unresolved!
#NOT in the LOG !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
...
This should not happen!
An unresolved function was called!
Fatal server error:
When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to [EMAIL PROTECTED]
EOF
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel