Freebsd 8, Gnome, Compiz-fusion

Hi to all from Ukraine.
When I run commands in terminal:
Code:
setenv LIBGL_ALWAYS_INDIRECT 1
compiz --replace --ignore-desktop-hints ccp &

I see white screen and banner "Compiz fusion". I may rotate cube pressing Ctrl+"Left", Ctrl+"Right" , but all verge's are black with encription "Compiz-fusion" :r
Here is my xorg.conf:
Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/local/lib/xorg/modules"
	FontPath     "/usr/local/lib/X11/fonts/misc/"
	FontPath     "/usr/local/lib/X11/fonts/TTF/"
	FontPath     "/usr/local/lib/X11/fonts/OTF"
	FontPath     "/usr/local/lib/X11/fonts/Type1/"
	FontPath     "/usr/local/lib/X11/fonts/100dpi/"
	FontPath     "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
	Load  "extmod"
	Load  "record"
	Load  "dbe"
	Load  "glx"
	Load  "dri"
	Load  "dri2"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/sysmouse"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "SAM"
	ModelName    "SyncMaster"
	EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "ati"
	VendorName  "ATI Technologies Inc"
	BoardName   "Mobility Radeon HD 3600 Series"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
Kernel was build with i386 architecture +devices drm, mach64drm,radeondrm
Code:
FreeBSD mare. 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #17: Sun Dec 27 10:46:24 EET 2009     mare@mare.:/usr/obj/usr/src/sys/mare  i386

Composite and direct rendering are enabled by xorg...
When I enable option "DRI" "true" in device section, i can not login into gnome. It throw me back into login promt after I enter login+password.

Xorg.0.log can be download here:

http://rapidshare.com/files/326478754/Xorg.0.log.html

Help me please,guys ...
 
Today i try ati, radeon, radeonhd drivers and now I can't login into Gnome-session with dri, dri2 modules in xorg.conf.
What happend with X.org ? Xorg -configure create's xorg.conf.new with them. :(
 
Software Rasterizer means that there is no hardware accelerated rendering, compiz won't work. The proper string should be like:
Code:
OpenGL renderer string: Mesa DRI R300 20060815 NO-TCL
Add following to xorg.conf:
Code:
#In section Screen:
    Option "AccelMethod" "EXA"
    Option "AIGLX" "TRUE"
#Section Extensions
 Section "Extensions"
    Option "Composite" "Enable"
 EndSection
#In section "Module"
Load "GLcore"
Load "dri"
#In Device
Section "Device"
    Identifier  "ati"
    Driver      "radeon"
    Option      "EnablePageFlip" "on"
    Option      "AccelMethod"     "EXA"
    Option      "DRI"             "on"
    Option "AccelDFS"    "1"
EndSection
This is the setup that works on my notebook. If it doesn't work, then try to reinstall ports dri, xf86driproto, dri2proto, xf86-video-ati, xorg-server (not sure about this one) and compiz.
 
The necessary components for 3D acceleration on HD2***, HD3***, and HD4*** cards are not in ports and 8.0-RELEASE. The kernel component is in -STABLE and -CURRENT, and the Mesa, libdrm, and xf86-video-ati components must either be installed from git or via a patch (or, rather, a series of patches) to the ports tree posted to the freebsd-x11 mailing list in the past month (with the most recent being in the last week or so).

EDIT: Found the most recent patch: http://lists.freebsd.org/pipermail/freebsd-x11/2009-December/009221.html

Adam
 
I try install latest MesaLib-7.6.1 from 22.12.2009 and have error in compiling /graphics/dri
Code:
radeon_screen.c: In function 'radeonCreateScreen':
radeon_screen.c: 1025 :error:  'R600_SCRATCH_REG_OFFSET' undeclared (first use in this function)
radeon_screen.c: 1024 :error: (Each undeclared identifier is reported only once for each function it appears in.)
gmake[5]: *** [radeon_screen_o] Error.1
gmake[4]: *** [subdirs] Error1
gmake[3]: *** [default] Error 1
gmake[2]: *** [driver_subdirs] Error 2
gname[1]: *** [subdirs] Error 1
gmake: *** [default] Error 1

Kernel 8-RELEASE and 8-STABLE don't give me result.
make.conf - clean, without modification's.
Can anybody post this error to x11-mailing list?
Thanks.
 
mare said:
I try install latest MesaLib-7.6.1 from 22.12.2009 and have error in compiling /graphics/dri
Code:
radeon_screen.c: In function 'radeonCreateScreen':
radeon_screen.c: 1025 :error:  'R600_SCRATCH_REG_OFFSET' undeclared (first use in this function)
radeon_screen.c: 1024 :error: (Each undeclared identifier is reported only once for each function it appears in.)
gmake[5]: *** [radeon_screen_o] Error.1
gmake[4]: *** [subdirs] Error1
gmake[3]: *** [default] Error 1
gmake[2]: *** [driver_subdirs] Error 2
gname[1]: *** [subdirs] Error 1
gmake: *** [default] Error 1

Kernel 8-RELEASE and 8-STABLE don't give me result.
make.conf - clean, without modification's.
Can anybody post this error to x11-mailing list?
Thanks.

Why can't you? Did you update libdrm?

Adam
 
adamk said:
Why can't you? Did you update libdrm?

Adam

Yes,Adam. At first I update ports-tree from patch-file from nroland on x11-mailing list. Compile give me error. Then I try reinstall all system for STABLE and RELEASE kernel, and full recompile xorg , but error don't leave ...
 
Then you didn't upgrade libdrm :) To confirm this, what is the output of 'grep -i R600_SCRATCH_REG_OFFSET /usr/local/include/drm/radeon_drm.h' ?
 
The intel errors are coming when you try to build Mesa? Use the --with-dri-drivers option and specify the r600 and swrast drivers.
 
Errors both in ports/graphics/dri and /ports/graphics/libGL. They stopped in intel_buffer_***.h source files. Where I may specify above option?
 
Whell... I go sleep. In the morning I'll try reinstall system and repeat all action's again...
Thank Adam...
 
Honestly, I am not at all familiar with the patches in question. I've been building the driver from source before the patches to the ports tree even existed. If you have problems with the patches, I suggest asking on the mailing list.

Adam
 
adamk said:
Honestly, I am not at all familiar with the patches in question. I've been building the driver from source before the patches to the ports tree even existed. If you have problems with the patches, I suggest asking on the mailing list.

Adam

Have any news ?:) Where I can get fixed port patch or complete package ? Thank
 
As I said, I suggest asking on the mailing list. The patch was posted there and if you have problems with it, that's the best place to ask.

Adam
 
Back
Top