Hi,
Finally i find my bug in AGP but r300 still not work. You will see below revelant part of my xorg log.
I think it's related to r300 driver because i get something with the r300 demo. I get the depth buffer with r300 demo but not the color one. I think this is due to radeon base address or to the R300_RB3D_COLOROFFSET0 setup, moreover there is a need for some endian swapping with get_int & get_short. So with r300 demo i see what i think is the depth buffer (something similar to what i got on x86, yellow buffer ...) and have not lock. With r300 driver glxinfo show strange things & glxgears hard lock the computer.
Anyway i wanted to known if anyone get an idea of the reasons behind the fail of r300 driver on PPC ?
Any idea could help :)
best, Jerome Glisse
xdriinf o ------------------------------------
pluton:/home/jerome/dev/r300_demo#xdriinfo Screen 0: r300 pluton:/home/jerome/dev/r300_demo#
-----------------
Xorg.0.log ----------------------------
(!!) RADEON(0): For information on using the multimedia capabilities of this adapter, please see http://gatos.sf.net. (--) Depth 24 pixmap format is 32 bpp (II) do I need RAC? No, I don't. (II) resource ranges after preInit: [0] 0 0 0x90000000 - 0x9000ffff (0x10000) MX[B] [1] 0 0 0xa0000000 - 0xafffffff (0x10000000) MX[B] [2] -1 0 0xffffffff - 0xffffffff (0x1) MX[B] [3] -1 0 0x00000000 - 0x00000000 (0x1) MX[B] [4] -1 0 0x80600000 - 0x80601fff (0x2000) MX[B] [5] -1 0 0x80400000 - 0x805fffff (0x200000) MX[B] [6] -1 0 0x80200000 - 0x80200fff (0x1000) MX[B] [7] -1 0 0x80204000 - 0x80207fff (0x4000) MX[B] [8] -1 0 0x80100000 - 0x801000ff (0x100) MX[B] [9] -1 0 0x80101000 - 0x80101fff (0x1000) MX[B] [10] -1 0 0x80102000 - 0x80102fff (0x1000) MX[B] [11] -1 0 0x80080000 - 0x80080fff (0x1000) MX[B] [12] -1 0 0x80081000 - 0x80081fff (0x1000) MX[B] [13] -1 0 0x80000000 - 0x8007ffff (0x80000) MX[B] [14] -1 0 0xf1000000 - 0xf101ffff (0x20000) MX[B](B) [15] -1 0 0x90000000 - 0x9000ffff (0x10000) MX[B](B) [16] -1 0 0xa0000000 - 0xafffffff (0x10000000) MX[B](B) [17] -1 0 0x80104000 - 0x80105fff (0x2000) MX[B] [18] 0 0 0x000a0000 - 0x000affff (0x10000) MS[B](OprU) [19] 0 0 0x000b0000 - 0x000b7fff (0x8000) MS[B](OprU) [20] 0 0 0x000b8000 - 0x000bffff (0x8000) MS[B](OprU) [21] 0 0 0x00000400 - 0x000004ff (0x100) IX[B] [22] -1 0 0x00ffffff - 0x00ffffff (0x1) IX[B] [23] -1 0 0x00000000 - 0x00000000 (0x1) IX[B] [24] -1 0 0x00000400 - 0x000004ff (0x100) IX[B](B) [25] 0 0 0x000003b0 - 0x000003bb (0xc) IS[B](OprU) [26] 0 0 0x000003c0 - 0x000003df (0x20) IS[B](OprU) (WW) RADEON(0): Enabling DRM support
*** Direct rendering support is highly experimental for Radeon 9500
*** and newer cards. In fact, the only thing you could probably use
*** it for is better 2d acceleration. The 3d mesa driver is not *** provided in this tree. A very experimental (and incomplete)
*** version is available from http://r300.sourceforge.net
*** This message has been last modified on 12/12/04.
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenByBusid: Searching for BusID pci:0000:f0:10.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenByBusid: drmOpenMinor returns 5
drmOpenByBusid: drmGetBusid reports pci:0000:f0:10.0
(II) RADEON(0): [drm] DRM interface version 1.2
(II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:f0:10.0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xe2264000
(II) RADEON(0): [drm] mapped SAREA 0xe2264000 to 0x380c7000
(II) RADEON(0): [drm] framebuffer handle = 0xa0000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): [agp] Mode 0x1f000269 [AGP 0x106b/0x0059; Card 0x1002/0x4152]
(II) RADEON(0): [agp] 8192 kB allocated with handle 0x00000001
(II) RADEON(0): [agp] ring handle = 0x00000000
(II) RADEON(0): [agp] Ring mapped at 0x380c9000
(II) RADEON(0): [agp] ring read ptr handle = 0x00101000
(II) RADEON(0): [agp] Ring read ptr mapped at 0x381ca000
(II) RADEON(0): [agp] vertex/indirect buffers handle = 0x00102000
(II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0x381cb000
(II) RADEON(0): [agp] GART texture map handle = 0x00302000
(II) RADEON(0): [agp] GART Texture map mapped at 0x383cb000
(II) RADEON(0): [drm] register handle = 0x90000000
(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) (1408,8191)
(II) RADEON(0): Reserved area from (0,1050) to (1408,1052)
(II) RADEON(0): Largest offscreen area available: 1408 x 7139
(II) RADEON(0): Will use back buffer at offset 0x16b0000
(II) RADEON(0): Will use depth buffer at offset 0x1c54000
(II) RADEON(0): Will use 96256 kb for textures at offset 0x2200000
(II) RADEON(0): Render acceleration unsupported on Radeon 9500/9700 and newer.
(II) RADEON(0): Render acceleration disabled
(**) RADEON(0): Option "XaaNoScanlineImageWriteRect"
(II) RADEON(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
8x8 mono pattern filled rectangles
Indirect CPU to Screen color expansion
Solid Lines
Offscreen Pixmaps
Setting up tile and stipple cache:
32 128x128 slots
32 256x256 slots
16 512x512 slots
(II) RADEON(0): Acceleration enabled
(==) RADEON(0): Backing store disabled
(==) RADEON(0): Silken mouse enabled
(II) RADEON(0): Using hardware cursor (scanline 1052)
(II) RADEON(0): Largest offscreen area available: 1408 x 7136
(II) RADEON(0): No video input capabilities detected and no information is provided - disabling multimedia i2c
(II) Loading sub module "theatre"
(II) LoadModule: "theatre"
(II) Loading /opt/xorg/lib/modules/multimedia/theatre_drv.o
(II) Module theatre: vendor="X.Org Foundation"
compiled for 6.8.1.99, module version = 1.0.0
ABI class: X.Org Video Driver, version 0.7
(II) RADEON(0): no multimedia table present, disabling Rage Theatre.
(II) RADEON(0): X context handle = 0x00000001
(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 48
(II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808
(II) RADEON(0): Direct rendering enabled
--------------
glxinfo --------
pluton:/home/jerome/dev/r300_demo# glxinfo name of display: :0.0 Using 8 maximum texture units.. disabling 3D acceleration 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.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_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 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_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig OpenGL vendor string: Tungsten Graphics, Inc. OpenGL renderer string: Mesa DRI R300 20040924 AGP 4x NO-TCL OpenGL version string: 1.3 Mesa 6.3 OpenGL extensions:
------------
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
