On Tue, 15 Mar 2005 18:36:21 -0500, Jung-uk Kim <[EMAIL PROTECTED]> wrote: > I have sort of working drm but I always get this from drm when I run > glxinfo or glxgears: > > drm0: <ATI Radeon RV300 Mobility 9600 M10> port 0x2000-0x20ff mem \ > 0xd0100000-0xd010ffff,0xd8000000-0xdfffffff irq 16 at device > 0.0 on \ > pci1 > info: [drm] AGP at 0xe0000000 256MB > info: [drm] Initialized radeon 1.15.0 20050208 on minor 0 > info: [drm] Loading R300 Microcode > error: [drm:pid12690:r300_do_cp_cmdbuf] *ERROR* bad cmd_type 255 at \ > 0xffffff0000baf800 > and > > Using 8 maximum texture units.. > sizeof(drm_r300_cmd_header_t)=4 > sizeof(drm_radeon_cmd_buffer_t)=32 > Allocating 284420 bytes command buffer (max state is 11140 bytes) > *********************************WARN_ONCE********************************* > File r300_state.c function r300Enable line 516 > Don't know how to enable polygon offset point/line. Help me ! > *************************************************************************** > drmRadeonCmdBuffer: -22 (exiting) > > Any idea? BTW, it's FreeBSD/amd64 6-CURRENT with today's r300. > > Thanks, > > Jung-uk Kim
Hi i just installed freebsd-5.3 and did cvsup to stable (RELENG_5). After modifying the xorg-server port to include the cvs-ati drivers and compiling drm-cvs from today i am able to start Xorg with dri enabled for r300. Glxinfo says that direct-rendering is enabled. However whenever i start an GL-application (like glxgears) i get the same error message as you did. I think this is because r300_driver has his own drm-modules (which include r300_cmdbuf.c). I have also the same error under linux-2.6 when i use kernels-drm. However trying to compile the drm-module from r300_driver under freebsd gives me the following error: $ make ===> drm Warning: Object directory not changed from original /usr/home/jan/dri/r300_driver/drm/bsd-core/drm ===> i915 Warning: Object directory not changed from original /usr/home/jan/dri/r300_driver/drm/bsd-core/i915 ===> mach64 Warning: Object directory not changed from original /usr/home/jan/dri/r300_driver/drm/bsd-core/mach64 ===> mga Warning: Object directory not changed from original /usr/home/jan/dri/r300_driver/drm/bsd-core/mga ===> r128 Warning: Object directory not changed from original /usr/home/jan/dri/r300_driver/drm/bsd-core/r128 ===> radeon Warning: Object directory not changed from original /usr/home/jan/dri/r300_driver/drm/bsd-core/radeon cc -O -pipe -I. -I.. -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I.. -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 \ -fno-common -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float \ -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \ -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/home/jan/dri/r300_driver/drm/bsd-core/radeon/../r300_cmdbuf.c /usr/home/jan/dri/r300_driver/drm/bsd-core/radeon/../r300_cmdbuf.c:131: error: syntax error before "r300_init_reg_flags" /usr/home/jan/dri/r300_driver/drm/bsd-core/radeon/../r300_cmdbuf.c:134: error: syntax error before numeric constant /usr/home/jan/dri/r300_driver/drm/bsd-core/radeon/../r300_cmdbuf.c:134: warning: type defaults to `int' in declaration of `memset' /usr/home/jan/dri/r300_driver/drm/bsd-core/radeon/../r300_cmdbuf.c:134: warning: function declaration isn't a prototype /usr/home/jan/dri/r300_driver/drm/bsd-core/radeon/../r300_cmdbuf.c:134: error: conflicting types for 'memset' @/sys/libkern.h:118: error: previous definition of 'memset' was here /usr/home/jan/dri/r300_driver/drm/bsd-core/radeon/../r300_cmdbuf.c:134: warning: data definition has no type or storage class /usr/home/jan/dri/r300_driver/drm/bsd-core/radeon/../r300_cmdbuf.c:60: warning: 'r300_emit_cliprects' defined but not used *** Error code 1 Stop in /usr/home/jan/dri/r300_driver/drm/bsd-core/radeon. *** Error code 1 So it seems that r300 would work (as good as in linux), if the drm-part of it would be updated to compile under freebsd. But this is beyond my skills. Greetings Jan ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel