ati on freebsd

Hi all,

I'm new to *BSD. Can you tell me how to install/configure ATI drivers so that I could have 3d acceleration?

I'm running FreeBSD 8.0 64 bit and the card is:

Code:
vgapci0@pci0:1:0:0:     class=0x030000 card=0x3600103c chip=0x95c41002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'ATI Mobility Radeon HD 3450 (ATI Mobility Radeon HD 3450)'
    class      = display
    subclass   = VGA

thank you
 
For 3D acceleration on that GPU, you need to be using 8-STABLE or 9-CURRENT. You need to be using the latest Xorg and Mesa from ports and set the WITHOUT_NOUVEAU option to 'yes' in /etc/make.conf. Then reboot, startx, and enjoy 3D acceleration.

Adam
 
Thank you.
I'm using 8-stable. I've added the entry to make.conf. Xorg was installed from ports today. The only thing is that I can't find mesa in ports. Where is it?

thank you
 
It's graphics/libGL, iirc. If you installed Xorg, then the libGL port was installed as well. Install graphics/mesa-demos and run 'glxinfo' as a normal user to see if you have 3D acceleration.
 
Thanks

I've got the following errors while installing mesa-demos:

Code:
shadowtex.c: In function 'Idle':
shadowtex.c:687: warning: implicit declaration of function 'glutGet'
shadowtex.c:694: warning: implicit declaration of function 'glutPostRedisplay'
shadowtex.c: In function 'Key':
shadowtex.c:708: warning: implicit declaration of function 'glutIdleFunc'
shadowtex.c: In function 'SpecialKey':
shadowtex.c:800: warning: implicit declaration of function 'glutGetModifiers'
shadowtex.c: In function 'Init':
shadowtex.c:877: warning: implicit declaration of function 'glutExtensionSupported'
shadowtex.c: In function 'main':
shadowtex.c:1025: warning: implicit declaration of function 'glutInit'
shadowtex.c:1026: warning: implicit declaration of function 'glutInitWindowPosition'
shadowtex.c:1027: warning: implicit declaration of function 'glutInitWindowSize'
shadowtex.c:1028: warning: implicit declaration of function 'glutInitDisplayMode'
shadowtex.c:1029: warning: implicit declaration of function 'glutCreateWindow'
shadowtex.c:1031: warning: implicit declaration of function 'glutReshapeFunc'
shadowtex.c:1032: warning: implicit declaration of function 'glutKeyboardFunc'
shadowtex.c:1033: warning: implicit declaration of function 'glutSpecialFunc'
shadowtex.c:1034: warning: implicit declaration of function 'glutDisplayFunc'
shadowtex.c:1039: warning: implicit declaration of function 'glutMainLoop'
gmake[2]: *** [shadowtex.o] Error 1
gmake[2]: Leaving directory `/usr/ports/graphics/mesa-demos/work/Mesa-7.6.1/progs/demos'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/mesa-demos/work/Mesa-7.6.1/progs'
gmake: *** [default] Error 1
*** Error code 1
 
Ok thanks that helped. Apparently an older version of libglut was installed so I upgraded it to the port version and mesa-demos installed fine. It seems that direct rendering is enabled.

Thanks a lot.
 
Having glxinfo show that direct rendering is enabled isn't enough to know if you have 3D acceleration. You can have direct rendering even with software rendering. What's the output of glxinfo | grep -i render
?

Adam
 
Nope, that means it's using the software renderer. Attach your full /var/log/Xorg.0.log file, please (though I likely won't be able to check it till tomorrow morning).

Adam
 
So direct rendering is getting enabled in the X server. Set the environmental variable LIBGL_DEBUG to true, and run glxinfo. Then show us the full output.

Adam
 
If you are using the csh or tcsh, you would run setenv LIBGL_DEBUG verbose; glxinfo

If you are using sh or bash, you could run LIBGL_DEBUG=verbose glxinfo

Adam
 
You didn't have WITHOUT_NOUVEAU=yes set in /etc/make.conf at the time you installed graphics/libGL. Add that option and rebuild that port.

Adam
 
Just to make sure if I do it properly. Shall I make deinstall and then make install clean or is there any other recommended way?

thanks
 
I would do make clean deinstall (the "clean" to wipe out the source for the previous build in case it causes problems) followed by make install clean
 
Thanks

Code:
bsdtop# less /etc/make.conf 
# added by use.perl 2010-06-25 23:40:00
PERL_VERSION=5.10.1
X_WINDOW_SYSTEM=xorg
WITHOUT_NOUVEAU="YES"
WITH_MUTT_IMAP_HEADER_CACHE="YES"
WITH_MUTT_MAILDIR_HEADER_CACHE="YES"
WITH_MUTT_CYRUS_SASL2="YES"
WITH_MUTT_SIDEBAR_PATCH="YES"
WITH_MUTT_SMTP="YES"

and glxinfo
http://pastebin.com/Y0RGLUjr
 
Still looks like it's using the old version of Mesa. Search /usr/ports/UPDATING for NOUVEAU to make sure I gave you the correct option. I'm not in front of a FreeBSD box at the moment.

Adam
 
That's what it says:
20100207:
AFFECTS: users of Mesa3D libraries and x11-drivers/xf86-video-nouveau
AUTHOR: nork@FreeBSD.org

If you want to use Mesa3D 7.6.1 and libdrm 2.4.17 rather than 7.4.4
and 2.4.12, you must define WITHOUT_NOUVEAU global macro, at least,
enabled on graphics/libGL*, graphics/libglut, graphics/dri,
graphics/mesa-demos, and graphics/libdrm. And please give up using
x11-drivers/xf86-video-nouveau.

At this time, I cannot enable latest Mesa3D and libdrm, because they
break xf86-video-nouveau. But old (current?) Mesa3D and libdrm do not
break any drivers.

AMD Radeon HD 2xxx/3xxx/4xxx users: If you use AMD Radeon HD [234]xxx
series, please define WITHOUT_NOUVEAU global macro. You can then use
OpenGL Hardware Accelerator feature on these series.


I also upgraded libdrm and dri. I seems we're getting somewhere:

http://pastebin.com/XCceecjV

It still gives errors but it 'seems' better now
 
So generally, how would I know if 3d acceleration is enabled? Is it when those entries ending with "SLOW" or "NONE" disappear?
 
Back
Top