Date: Sat, 5 Jan 2002 20:44:50 -0500 From: Randall Hopper <aa8vb@nc.rr.com> To: Jordan Hubbard <jkh@winston.freebsd.org> Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: OpenGL Message-ID: <20020105204450.B29015@nc.rr.com> In-Reply-To: <15141.1010278642@winston.freebsd.org>; from jkh@winston.freebsd.org on Sat, Jan 05, 2002 at 04:57:22PM -0800 References: <aa8vb@nc.rr.com> <15141.1010278642@winston.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Jordan Hubbard:
|Seeing your guys' conversation here compelled me to give DRI
|acceleration another try, so I did a make World in both the
|XFree86-current tree and in the DRI development branch you pointed to
|and installed the results (though to get `make install' to function in
|the DRI bits, I had to remove the tdfx driver from the build list).
I never did get the SourceForge DRM tree to build. For my Matrox, I used
the DRM modules in the XFree86 CVS tree. No problems.
|Now I'm going down your checklist:
|
|> 1) Verifying your libGL is the DRI-enabled one (it almost certainly is, but
|> just to double-check):
|
|Check. The X server also identifies itself as:
|XFree86 Version 4.1.99.1 (DRI bsd-2-0-0) / X Window System
Interesting. My XFree86.0.log says:
XFree86 Version 4.1.99.4 / X Window System
this is XFree86 CVS from Thursday, with the XFree86 CVS DRM module (mga.ko).
|> 2) DRM module loaded
|>
|> > kldstat | grep mga
|> 3 1 0xc041f000 183f4 mga.ko
|
|No check. This has me stumped.
Here, I have:
> cat /boot/loader.conf
userconfig_script_load="YES"
linux_load="YES"
-> mga_load="YES"
hw.ata.atapi_dma=1
autoboot_delay="2" # Delay in seconds before autobooting
I cd'ed into the BSD DRM subtree of the XFree86 CVS tree and did a make -f
Makefile.bsd, then copied mga.ko into /modules. That may not be the
approved way to do it, but it worked.
|root@winston-> kldload /a/local/lib/drm/mga.ko
|kldload: can't load /a/local/lib/drm/mga.ko: Exec format error
|
|This is as installed from /usr/ports/graphics/drm-kmod and, for some
|reason, the resulting modules are disliked by my 4.5-PRERELEASE
|system. How are you getting a usable mga.ko module?
XFree86 CVS's DRM. I ignored drm-kmod port and SourceFource DRI.
|> 3) DRI device perms
|>
|> > ls -ltd /dev
|> drwxr-xr-x 4 root wheel 17408 Jan 5 09:18 /dev/
|> > ls -ltd /dev/dri
|> drwxrwxrwx 2 root wheel 512 Jan 5 10:13 /dev/dri/
|> > ls -ltd /dev/dri/*
|> crw-rw-rw- 1 root wheel 145, 0 Jan 5 10:13 /dev/dri/card0
|
|And how did you get this created without devfs? I see nothing in our
|MAKEDEV which supports this.
This is a mystery device to me. It's created on boot-up, presumably by the
mga kernel module (or drm module). I tried chmod'ing it once just for
kicks and (poof!) it "disappeared", until I rebooted that is. Then it
reappeared just as before. I think its permissions are set by the:
Section "DRI"
Mode 0666
EndSection
bit in XF86Config.
|My system is an older AMD Athlon (Slot-A) with ASUS K7 mobo and Matrox
|MGA G400 AGP. Even without DRI support, I get glxgears to do ``860
|frames in 5.0 seconds = 172.000 FPS'', though things like sproingies
|and tuxracer turn in something closer to 4-5 FPS. I've also
|recompiled both from scratch, just in case they're linking with
|something weird, but no luck.
|
|Any ideas for someone who's a few steps further back than you guys? :)
I'm think you're on the right track in that the first order of business is
to get that mga kernel module loading. Then some of the tips I offered to
Bjarne earlier in this thread might be useful ("setenv LIBGL_DEBUG verbose",
"setenv LIBGL_ALWAYS_INDIRECT 1", etc.)
Feel free to shout if you need some more assistance.
Randall
--
Randall Hopper
aa8vb@nc.rr.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020105204450.B29015>
