Hello,
You need to use the drm that's in r300_driver/drm.
The one that comes with the kernel doesn't have all the needed functions.
Cheers,
Ben.
[EMAIL PROTECTED] wrote:
Hi,
I'm new to DRI development but am interested in helping with the r300
driver. I am trying to get the driver working with my Radeon 9550 and
I have glxinfo reporting that direct rendering is enabled and the
OpenGL renderer string is "Mesa DRI R300 20040924 AGP 4x
x86/MMX+/3DNow!+/SSE NO-TCL", but glxgears exits almost immediately
with the last message it prints out being "drmRadeonCmdBuffer: -22
(exiting)". I am running a 2.6.11-rc5 kernel using the DRM modules
that come with it (I can't get the DRM modules from CVS to load with a
2.6.10 kernel), the latest Xorg, Mesa, and r300_driver sources from
anonymous CVS as of about 11am today (2005-03-01). Everything has been
compiled against glibc 2.3.4 using gcc 3.4.3. I'm not using merged-fb
nor is the kernel radeon framebuffer module loaded. The error is
identical regardless of whether I have immediate mode or VB mode
enabled (I don't think it is making it that far in the driver code
before exiting...). I have attached the output from glxgears with
LIBGL_DEBU=verbose and RADEON_DEBUG=all. Any ideas, or advice for
debugging this problem?
- Brian
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------------------------------------------------------
libGL: XF86DRIGetClientDriverName: 4.0.1 r300 (screen 0)
libGL: OpenDriver: trying /home/satyr/X11R6/lib/modules/dri/r300_dri.so
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
libGL error:
Can't open configuration file /etc/drirc: No such file or directory.
libGL error:
Can't open configuration file /home/satyr/.drirc: No such file or directory.
r300AllocTexObj( 0x805b000, 0x807acd8 )
r300AllocTexObj( 0x805b1d0, 0x807b2f0 )
r300AllocTexObj( 0x807b908, 0x807bad8 )
r300AllocTexObj( 0x807c0f0, 0x807c2c0 )
r300AllocTexObj( 0x807c8d8, 0x807caa8 )
r300AllocTexObj( 0x808b908, 0x808bad8 )
r300AllocTexObj( 0x808c0f0, 0x808c2c0 )
r300AllocTexObj( 0x808c8d8, 0x808caa8 )
r300AllocTexObj( 0x808d0c0, 0x808d290 )
r300AllocTexObj( 0x808d8a8, 0x808da78 )
Using 8 maximum texture units..
sizeof(drm_r300_cmd_header_t)=4
sizeof(drm_radeon_cmd_buffer_t)=16
Allocating 284420 bytes command buffer (max state is 11140 bytes)
r300ResetHwState
r300Enable( GL_DEPTH_TEST = GL_FALSE )
mtu=8
TX_ENABLE: 00000000 max_texture_unit=-1
r300Enable( GL_POLYGON_OFFSET_POINT = GL_FALSE )
*********************************WARN_ONCE*********************************
File r300_state.c function r300Enable line 516
Don't know how to enable polygon offset point/line. Help me !
***************************************************************************
r300Enable( GL_POLYGON_OFFSET_LINE = GL_FALSE )
r300Enable( GL_POLYGON_OFFSET_FILL = GL_FALSE )
R200 begin tcl fallback User disable
radeonMakeCurrent ctx 0x805eca8
r300ResetHwState
r300Enable( GL_DEPTH_TEST = GL_FALSE )
Enabling VB->ObjPtr
Enabling VB->ColorPtr[0]
RR[0] - sz=4, reg=0, fmt=1 -- st=4, of=0x00000000
RR[1] - sz=4, reg=1, fmt=3 -- st=4, of=0x00000000
mtu=8
TX_ENABLE: 00000000 max_texture_unit=-1
r300Enable( GL_POLYGON_OFFSET_POINT = GL_FALSE )
r300Enable( GL_POLYGON_OFFSET_LINE = GL_FALSE )
r300Enable( GL_POLYGON_OFFSET_FILL = GL_FALSE )
End radeonMakeCurrent
r300Enable( GL_CULL_FACE = GL_TRUE )
r300Enable( GL_LIGHTING = GL_TRUE )
r300Enable( GL_LIGHT0 = GL_TRUE )
r300Enable( GL_DEPTH_TEST = GL_TRUE )
r300Enable( GL_NORMALIZE = GL_TRUE )
r300ResetHwState
r300Enable( GL_DEPTH_TEST = GL_TRUE )
Enabling VB->ObjPtr
Enabling VB->ColorPtr[0]
RR[0] - sz=4, reg=0, fmt=1 -- st=4, of=0x00000000
RR[1] - sz=4, reg=1, fmt=3 -- st=4, of=0x00000000
mtu=8
TX_ENABLE: 00000000 max_texture_unit=-1
r300Enable( GL_POLYGON_OFFSET_POINT = GL_FALSE )
r300Enable( GL_POLYGON_OFFSET_LINE = GL_FALSE )
r300Enable( GL_POLYGON_OFFSET_FILL = GL_FALSE )
r300Clear: all=1 cx=0 cy=0 cw=300 ch=300
r300ClearBuffer: back buffer (26,9 300x300)
Reemit state after flush (from r300ClearBuffer)
r300EmitState
Begin reemit state
Begin dirty state
r300EmitState
r300ResetHwState
r300Flush
r300FlushCmdBufLocked from r300Flush - 1 cliprects
Syncing in r300FlushCmdBufLocked (from r300Flush)
drmRadeonCmdBuffer: -22 (exiting)
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel