View previous topic :: View next topic |
Author |
Message |
fuoco Guru
Joined: 23 May 2004 Posts: 386 Location: Israel
|
Posted: Sun Feb 19, 2006 10:43 am Post subject: |
|
|
Nick C wrote: | finally got the radeon driver working with my x300 in a T43 however i had problems getting the kernel modules to load, modprobe refused to see either the drm module or radeon one, however using insmod and the full path to each module loaded them fine. Is there any reason for this and/or is there any way to fix this so that the modules can be loaded ok as normal on boot? |
run modules-update or depmod |
|
Back to top |
|
|
Nick C Guru
Joined: 18 Mar 2005 Posts: 526 Location: Portsmouth, England
|
Posted: Sun Feb 19, 2006 11:13 am Post subject: |
|
|
yup, was the first thing i did as per the instructions on page 1 yet all i got (and still get) was a FATAL: module not found |
|
Back to top |
|
|
lroland n00b
Joined: 28 Aug 2005 Posts: 32 Location: Copenhagen, Denmark
|
Posted: Sun Feb 19, 2006 12:07 pm Post subject: |
|
|
Nick C wrote: | yup, was the first thing i did as per the instructions on page 1 yet all i got (and still get) was a FATAL: module not found |
Usually this stuff happends if you have not copied the module to the correct location also have you tried insmod'ing the module with its full path ?. |
|
Back to top |
|
|
Phlogiston Veteran
Joined: 27 Jan 2004 Posts: 1925 Location: Europe, Swizerland
|
Posted: Sun Feb 19, 2006 2:44 pm Post subject: |
|
|
Nick C wrote: | finally got the radeon driver working with my x300 in a T43 however i had problems getting the kernel modules to load, modprobe refused to see either the drm module or radeon one, however using insmod and the full path to each module loaded them fine. Is there any reason for this and/or is there any way to fix this so that the modules can be loaded ok as normal on boot? |
They're also working here in the same environment. But unfortunately dri breaks suspend2... Isn't there a patch available for that? And why not? I mean it's also possible with the binary ati drivers so that can't be that difficult to get it working or whats the point?
Greets
Phlogiston _________________ Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Tue Feb 21, 2006 5:29 pm Post subject: A real HOWTO. |
|
|
a) Unmask X.org 7.0, read: http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml
For Radeon cards, you need in /etc/make.conf:
VIDEO_CARDS="ati
USE="dri"
b) Install X.org 7.0, and it will pull as dependency Mesa 3D DRI drivers for all Radeon cards, up to somewhat X800 cards. Command: emerge -av xorg-x11
c) Compile your kernel with Direct Rendering Manager (drm.ko) and Radeon support (radeon.ko) being as modules.
d) Upgrade your kernel modules from DRM CVS (Please quit X and Display Managers before doing this):
cd /usr/src
cvs -d:pserver:anonymous@cvs.freedesktop.org:/cvs/dri login
cvs -z3 -d:pserver:anonymous@cvs.freedesktop.org:/cvs/dri co drm
cd /usr/src/drm/linux-core
make clean
make DRM_MODULES="radeon"
rmmod radeon
rmmod drm
cp /usr/src/drm/linux-core/*.ko /lib/modules/$(uname -r)/kernel/drivers/char/drm/
depmod -ae
modprobe radeon
e) Unmask and Install DRIConf to tweak your settings. Command: emerge -av driconf
f) Setup your xorg.conf, Section "Module" and "Device" as following:
Section "Module"
Load "dbe" # Double Buffering
SubSection "extmod" # Load extmod, but skip DGA cause it does instablity.
Option "omit xfree86-dga"
EndSubSection
Load "freetype" # Fonts
Load "type1" # Fonts
Load "glx" # 3D
Load "dri" # 3D
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Device"
Identifier "radeon"
Driver "radeon"
Option "AGPMode" "8" # Speed of AGP, X.org 7.0 now supports 8x
Option "AccelMethod" "EXA" # New RenderAccel, you can use Composite Extension _FAST_ with 7000-9250 radeons.
BusID "PCI:1:0:0"
EndSection
Section "Extensions"
Option "Composite" "Enable" # Now, this works perfectly if you use 7000-9250 radeon with EXA RenderAccel.
EndSection
I know you've seen other options in Section "Device" too, they are explained in "man radeon" and all other important ones.. are enabled _by default_, so no need to add extras. |
|
Back to top |
|
|
phaidros n00b
Joined: 27 Jul 2003 Posts: 26 Location: germany
|
Posted: Thu Feb 23, 2006 4:36 pm Post subject: recent lockups |
|
|
hi,
thanx very much for the guide
what I have
- thinkpad T41P with ATI M10 NT (FireGL Mobility T2)
(btw. I'm still not sure which chip it is - rv350?)
what I did installed
- a fresh gentoo. with re-emerging world twice with gcc 3.4.4.
- modular X 7.0-r1 and mesa 6.4.2
- kernel with intel-agp, no drm, no dri (I tried also with enabled drm, same results as below)
- followed the rest of the guide (dri-cvs & mesa-cvs)
all good so far:
- radeon/drm is loaded at boot
- X loads the r300 dri extension
- both screens run
- mergedfb runs
- dri is enabled
- gxlgears give around 2000 (though sometimes only 200)
My xorg.conf
Code: |
Section "DRI"
Mode 0666
EndSection
Section "ServerFlags"
Option "Xinerama" "Off"
EndSection
Section "Files"
..snip..
EndSection
Section "Module"
Load "dbe" # Double buffer extension
Load "v4l" # Video for Linux
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "type1"
Load "freetype"
Load "glx" # libglx.a
Load "dri" # libdri.a
# Load "drm" # this seems useless, since in Xlog it says it reloads
# the drm driver here (which means its already loaded before, maybe by dri?)
# and with this enabled nothing changes in the behaviour
Load "xtrap"
Load "record"
Load "synaptics"
EndSection
(.. here comes keyboard, mouse and touchpad ..)
Section "Device"
Identifier "ATI"
Driver "radeon"
VideoRam 131072
Option "AGPMode" "8"
Option "EnablePageFlip" "on"
Option "RenderAccel" "on"
# XAA & EXA, EXA is newer with maybe more bugs
#Option "AccelMethod" "EXA"
#Option "AGPFastWrite" "on"
Option "ColorTiling" "true"
#Option "GARTsize" "16"
Option "DynamicClocks" "on"
Option "BIOSHotkeys" "on"
Option "MergedFB" "true"
Option "CRT2Position" "RightOf"
#Option "CRT2Hsync" "50-75"
#Option "CRT2VRefresh" "30-82"
Option "MetaModes" "1400x1050-1280x1024"
Option "MergedNonRectangular" "true"
Option "MergedXinerama" "true"
Option "MergedDPI" "100 100"
# This two lines are needed to prevent fonts from being scrambled
Option "XaaNoScanlineImageWriteRect"
Option "XaaNoScanlineCPUToScreenColorExpandFill"
BusID "PCI:1:0:0"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "Monitor"
Identifier "thinkpad lcd"
Option "DPMS"
EndSection
Section "Screen"
Identifier "Screen0"
Device "ATI"
Monitor "thinkpad lcd"
DefaultDepth 24
SubSection "Display"
Depth 16
Modes "1400x1050" "1280x1024" "1024x768"
Depth 24
Modes "1400x1050" "1280x1024" "1024x768"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Multihead layout"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Touchpad"
InputDevice "Mouse1" "CorePointer"
Screen "Screen0"
EndSection
|
so far mergedfb works, but I get lockups every now and then. sometimes it runs smooth, but then e.g. starting thunderbird / firefox or even any app which opens or closes window it crashes.
btw. favorite desktop is gnome, but crashes also appear with fluxbox. which maybe give an indicator whats happening: I can reproducable create lockups when chaning the style in fluxbox (dunno what fluxbox does in that case, at least it tries to change background color/image and to reload some stuff). maybe this is a hint?
guessing its the xinerama USE flag, I used only apps, which were not compiled with, but still - random lockups.
the second monitor might not be the reason for the lockups: after awhile I even got lockups with the xorg.conf abov e with only one monitor connected
playing around with xorg.conf:
- EXA gives black screen (on both) when starting X
- enabling/disabling all other settings seem to have no influence on the stability.
I cannot find errors or strange things in syslog, not in Xlog.
so after reading alot of manpages, wikis and forums .. I have no clue what to try/test further.
what logs etc. should I post further?
any ideas around?
erm, btw. are the radeon-memmap patches suitable for the card above?
if so, how to include them in the build process? (its mentioned there that the patches are already in gentoo, but I didn't find any hint, not in: mesa / xorg-x11 / x11-drm) |
|
Back to top |
|
|
spoonerb n00b
Joined: 23 Feb 2006 Posts: 19 Location: Bham, AL
|
Posted: Thu Feb 23, 2006 10:16 pm Post subject: |
|
|
I have 3 questions for you guys.
1. Should enable DRM and the Radeon drivers in my 2.6.15 kernel when using these r300 drivers? Or does it not matter?
2. I am using Xorg 7 and just installed this driver. I am using a ATI Radeon 9600XT and everything seems ok with 2d exel but only have been using this driver for today. Although with the Load glx in my xorg.conf my system freezes and I cannot using the keyboard to CTL + ALT + Backspace to halt X. My only option is to reset the computer which I assume is going to curropt my system. (I am using EXT3 on my root partition.) Has anyone had a similiar experience. Without the glx option it runs fine. This also occurs when i am using the regular X ATI driver and not just the Radeon driver, so I believe it is not just this r300 radeon driver.
I am still a newb so let me know what other info and configs I need to post if anyone is willing to help.
Also how can I check to see if 2d acceleration is working?
3. Also when compiling X I noticed there is a fglrx video card flag that can be used but with the ATI flag it doesn't compile because it says the fglrx.ko is missing. I am assuming this is because fglrx isnt available with the ati xorg driver. Is this correct and it isn't needed if I am using this driver or the proprietory drivers?
Should I try the official ATI drivers? Besides this r300 driver being open source what are the advantages of this driver. I am going to be using dual monitors I though i remembered reading that the official ATI drivers disable 3d acceleration when using to monitors but with these it might be possible to use MergedFB to have acceleration on both monitors. For this reason I wanted to try these drivers. But I am thinking if I can load glx with this driver or the standard X ati driver then the official drivers will load glx either without freezing.
Anyone that has some insight into this problem will be my freind and hero. |
|
Back to top |
|
|
spoonerb n00b
Joined: 23 Feb 2006 Posts: 19 Location: Bham, AL
|
Posted: Thu Feb 23, 2006 10:22 pm Post subject: Re: A real HOWTO. |
|
|
I also used SamuliSuominen's how-to a post or two back. It is a little different and shorter then the original post. Is this for xorg 7 users and the original post is for previous versions of xorg (Like 6.99). Is that the reason there are less steps? Since Xorg 7.0.0 already has the correct mesa version with the driver and what not? Or am I missing something?
Forgive my ignorance, but like I siad I am still learning.
SamuliSuominen wrote: | a) Unmask X.org 7.0, read: http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml
For Radeon cards, you need in /etc/make.conf:
VIDEO_CARDS="ati
USE="dri"
b) Install X.org 7.0, and it will pull as dependency Mesa 3D DRI drivers for all Radeon cards, up to somewhat X800 cards. Command: emerge -av xorg-x11
c) Compile your kernel with Direct Rendering Manager (drm.ko) and Radeon support (radeon.ko) being as modules.
d) Upgrade your kernel modules from DRM CVS (Please quit X and Display Managers before doing this):
... |
(Quote edited to save space since orginal post is so close) |
|
Back to top |
|
|
lroland n00b
Joined: 28 Aug 2005 Posts: 32 Location: Copenhagen, Denmark
|
Posted: Fri Feb 24, 2006 12:04 pm Post subject: Re: A real HOWTO. |
|
|
SamuliSuominen wrote: | a) Unmask X.org 7.0, read: http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml
For Radeon cards, you need in /etc/make.conf:
VIDEO_CARDS="ati
USE="dri"
b) Install X.org 7.0, and it will pull as dependency Mesa 3D DRI drivers for all Radeon cards, up to somewhat X800 cards. Command: emerge -av xorg-x11
c) Compile your kernel with Direct Rendering Manager (drm.ko) and Radeon support (radeon.ko) being as modules.
|
Nice tweak for the current Gentoo perhaps I should update the original post to reflect this ?. I guess most people are out of 6.9 land, what does you guys think ?. |
|
Back to top |
|
|
Aggamemnon Tux's lil' helper
Joined: 04 Mar 2004 Posts: 99 Location: Bristol, UK
|
Posted: Fri Feb 24, 2006 12:12 pm Post subject: |
|
|
Please do |
|
Back to top |
|
|
Phlogiston Veteran
Joined: 27 Jan 2004 Posts: 1925 Location: Europe, Swizerland
|
Posted: Wed Mar 01, 2006 9:44 am Post subject: |
|
|
Did anyone got this driver working with XGL? _________________ Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor |
|
Back to top |
|
|
inf3rno n00b
Joined: 26 Feb 2006 Posts: 20
|
Posted: Wed Mar 01, 2006 11:27 am Post subject: |
|
|
Hello all, I'm experiencing a very weird issue in gameplay, that I've documented as much as possible at https://forums.gentoo.org/viewtopic-p-3148237.html#3148237 - I've dug up as much information as I can on this, and I'm curious as to if DRI is more what I need to resolve this issue? If anyone wouldn't mind looking this over and shooting back a response when available, I would be eternally grateful for anything to get me in the right direction here.
Thank you. =) |
|
Back to top |
|
|
danrok^ Tux's lil' helper
Joined: 11 Sep 2004 Posts: 117 Location: Poland, Zabrze
|
Posted: Thu Mar 02, 2006 9:25 pm Post subject: |
|
|
I've downloaded sources for DRI from CVS as sait on 11 page and on 1. I've got such problem:
Code: |
-Wall -Wmissing-prototypes -g -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -std=c99 -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER glxcmds.c -o glxcmds.o
glxcmds.c:1726: warning: no previous prototype for 'glXSwapIntervalMESA'
glxcmds.c:1758: warning: no previous prototype for 'glXGetSwapIntervalMESA'
glxcmds.c:1788: warning: no previous prototype for 'glXBeginFrameTrackingMESA'
glxcmds.c:1808: warning: no previous prototype for 'glXEndFrameTrackingMESA'
glxcmds.c:1829: warning: no previous prototype for 'glXGetFrameUsageMESA'
glxcmds.c:1857: warning: no previous prototype for 'glXQueryFrameTrackingMESA'
glxcmds.c:2595: warning: no previous prototype for 'glXBindTexImageEXT'
glxcmds.c: In function `glXBindTexImageEXT':
glxcmds.c:2618: error: `X_GLXvop_BindTexImageEXT' undeclared (first use in this function)
glxcmds.c:2618: error: (Each undeclared identifier is reported only once
glxcmds.c:2618: error: for each function it appears in.)
glxcmds.c: At top level:
glxcmds.c:2636: warning: no previous prototype for 'glXReleaseTexImageEXT'
glxcmds.c: In function `glXReleaseTexImageEXT':
glxcmds.c:2659: error: `X_GLXvop_ReleaseTexImageEXT' undeclared (first use in this function)
make[3]: *** [glxcmds.o] Error 1
make[3]: Leaving directory `/usr/src/r300/Mesa/src/glx/x11'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/src/r300/Mesa/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/usr/src/r300/Mesa'
make: *** [linux-dri-x86] Error 2
|
Somebody know how repair it? I've got 32 bit system. Here is my emerge info:
Code: | Portage 2.1_pre5-r2 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python: 2.3.5, 2.4.2-r1
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1-r2
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache digest distlocks prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirror.solnet.ch http://mirror.switch.ch/mirror/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.lug.ro/gentoo/"
LINGUAS="pl"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X alsa avi berkdb bitmap-fonts chroot crypt cups dvd dvdr dvdread eds emboss encode ffmpeg firefox foomaticdb fortran gdbm gg gif glx gnome gpm gstreamer gtk2 imlib jack jpeg libg++ libwww linuxthreads-tls mad mikmod mmx mmx2 mp3 mpeg ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl pam pdflib perl pic png python quicktime readline sdl see2 spell sse ssl svg tcpd truetype truetype-fonts type1-fonts userlocales vorbis vorbisv xml xml2 xv xvid xvmc zlib elibc_glibc kernel_linux linguas_pl userland_GNU video_cards_ati"
Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, MAKEOPTS
|
|
|
Back to top |
|
|
Iluminatus Tux's lil' helper
Joined: 13 Nov 2004 Posts: 93 Location: Maia/Portugal
|
Posted: Fri Mar 03, 2006 12:34 am Post subject: |
|
|
I'll soon post a patch, the trick here is to patch glproto.h, i already, a set of patches to send to nxtsy, glproto is one of them.
You could use a solution that i gave... search well you'll find it.
Code: |
diff -U 3 -w -B -d -r -N -x CVS -x .cvsignore -- usr/include/GL/glxproto.h usr-cvs/include/GL/glxproto.h
--- usr/include/GL/glxproto.h 2005-10-06 03:51:57.000000000 +0100
+++ usr-cvs/include/GL/glxproto.h 2006-02-24 15:43:51.000000000 +0000
@@ -2387,7 +2387,8 @@
#define X_GLXvop_QueryHyperpipeConfigSGIX 65551
#define X_GLXvop_HyperpipeConfigSGIX 65552
#define X_GLXvop_DestroyHyperpipeConfigSGIX 65553
-
+#define X_GLXvop_BindTexImageEXT 5152
+#define X_GLXvop_ReleaseTexImageEXT 5153
/* ARB extension opcodes */
@@ -2514,4 +2515,13 @@
/* 299. GL_EXT_blend_equation_separate */
#define X_GLrop_BlendEquationSeparateEXT 4228
+/* 310. GL_EXT_framebuffer_object */
+#define X_GLvop_IsRenderbufferEXT 1422
+#define X_GLvop_GenRenderbuffersEXT 1423
+#define X_GLvop_GetRenderbufferParameterivEXT 1424
+#define X_GLvop_IsFramebufferEXT 1425
+#define X_GLvop_GenFramebuffersEXT 1426
+#define X_GLvop_CheckFramebufferStatusEXT 1427
+#define X_GLvop_GetFramebufferAttachmentParameterivEXT 1428
+
#endif /* _GLX_glxproto_h_ */
diff -U 3 -w -B -d -r -N -x CVS -x .cvsignore -- usr/include/GL/glxtokens.h usr-cvs/include/GL/glxtokens.h
--- usr/include/GL/glxtokens.h 2004-06-30 21:06:52.000000000 +0100
+++ usr-cvs/include/GL/glxtokens.h 2006-02-20 15:43:44.000000000 +0000
@@ -232,6 +232,17 @@
#define GLX_SCREEN_EXT 0x800C /* screen number */
/*
+** GLX_EXT_texture_from_pixmap
+*/
+#define GLX_FRONT_LEFT_EXT 0x6005
+
+#ifndef GLX_TEXTURE_TARGET_EXT
+#define GLX_TEXTURE_TARGET_EXT 0x6001
+#define GLX_TEXTURE_2D_EXT 0x6002
+#define GLX_TEXTURE_RECTANGLE_EXT 0x6003
+#define GLX_NO_TEXTURE_EXT 0x6004
+#endif
+/*
* GLX 1.4 and later:
*/
#define GLX_SAMPLE_BUFFERS_SGIS 100000
|
|
|
Back to top |
|
|
Pancu l33t
Joined: 16 Feb 2005 Posts: 612 Location: Cesena
|
Posted: Tue Mar 14, 2006 10:18 pm Post subject: |
|
|
i have this error:
Code: | # make linux-dri-x86-64
(cd configs && rm -f current && ln -s linux-dri-x86-64 current)
make default
make[1]: Entering directory `/usr/src/r300/Mesa'
make[2]: Entering directory `/usr/src/r300/Mesa/src'
Making sources for linux-dri-x86-64
make[3]: Entering directory `/usr/src/r300/Mesa/src/glx/x11'
gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa/main -I../../../src/mesa/glapi -I../../../src/mesa/drivers/dri/common `pkg-config --cflags libdrm` -I/usr/X11R6/include -Wall -Wmissing-prototypes -g -fPIC -m64 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DUSE_X86_64_ASM -std=c99 -ffast-math -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER glxcmds.c -o glxcmds.o
glxcmds.c: In function `glXBindTexImageEXT':
glxcmds.c:2619: error: `X_GLXvop_BindTexImageEXT' undeclared (first use in this function)
glxcmds.c:2619: error: (Each undeclared identifier is reported only once
glxcmds.c:2619: error: for each function it appears in.)
glxcmds.c: In function `glXReleaseTexImageEXT':
glxcmds.c:2660: error: `X_GLXvop_ReleaseTexImageEXT' undeclared (first use in this function)
make[3]: *** [glxcmds.o] Error 1
make[3]: Leaving directory `/usr/src/r300/Mesa/src/glx/x11'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/src/r300/Mesa/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/usr/src/r300/Mesa'
make: *** [linux-dri-x86-64] Error 2
|
help me!! |
|
Back to top |
|
|
Iluminatus Tux's lil' helper
Joined: 13 Nov 2004 Posts: 93 Location: Maia/Portugal
|
Posted: Wed Mar 15, 2006 11:47 am Post subject: |
|
|
just apply the patch i gave in the thread before.... |
|
Back to top |
|
|
Pancu l33t
Joined: 16 Feb 2005 Posts: 612 Location: Cesena
|
Posted: Wed Mar 15, 2006 12:47 pm Post subject: |
|
|
Iluminatus wrote: | just apply the patch i gave in the thread before.... |
Thanks!
What can i do to apply the patch???
I'm not expert.
Thanks! |
|
Back to top |
|
|
Iluminatus Tux's lil' helper
Joined: 13 Nov 2004 Posts: 93 Location: Maia/Portugal
|
Posted: Wed Mar 15, 2006 2:36 pm Post subject: |
|
|
Copy/paste. Simply copy the code that is highlighted, to kate, gedit, nano, whatever. Save for example by the name glproto.patch, in your /tmp directory.
in the shell do:
Quote: |
su
cd /
patch -p0 -g0 < /tm/glproto.h
|
And your done. |
|
Back to top |
|
|
Pancu l33t
Joined: 16 Feb 2005 Posts: 612 Location: Cesena
|
Posted: Wed Mar 15, 2006 8:32 pm Post subject: |
|
|
i have a new error:
Code: | # make linux-dri-x86-64
(cd configs && rm -f current && ln -s linux-dri-x86-64 current)
make default
make[1]: Entering directory `/usr/src/r300/Mesa'
make[2]: Entering directory `/usr/src/r300/Mesa/src'
Making sources for linux-dri-x86-64
make[3]: Entering directory `/usr/src/r300/Mesa/src/glx/x11'
make[3]: Nothing to be done for `default'.
make[3]: Leaving directory `/usr/src/r300/Mesa/src/glx/x11'
make[3]: Entering directory `/usr/src/r300/Mesa/src/mesa'
make[4]: Entering directory `/usr/src/r300/Mesa/src/mesa'
make[5]: Entering directory `/usr/src/r300/Mesa/src/mesa/x86'
make[5]: Nothing to be done for `default'.
make[5]: Leaving directory `/usr/src/r300/Mesa/src/mesa/x86'
make[5]: Entering directory `/usr/src/r300/Mesa/src/mesa/x86-64'
make[5]: Nothing to be done for `default'.
make[5]: Leaving directory `/usr/src/r300/Mesa/src/mesa/x86-64'
gcc -c -I../../include -I../../src/mesa -I../../src/mesa/main -I../../src/mesa/glapi -I../../src/mesa/math -I../../src/mesa/tnl -I../../src/mesa/shader -I../../src/mesa/shader/grammar -I../../src/mesa/shader/slang -I../../src/mesa/shader/slang/OSDependent/Linux -I../../src/mesa/shader/slang/OGLCompilersDLL -I../../src/mesa/swrast -I../../src/mesa/swrast_setup -Wall -Wmissing-prototypes -g -fPIC -m64 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DUSE_X86_64_ASM -std=c99 -ffast-math tnl/t_vb_arbshader.c -o tnl/t_vb_arbshader.o
In file included from tnl/t_vb_arbshader.c:35:
../../src/mesa/shader/slang/slang_link.h:45: error: `SLANG_SHADER_MAX' undeclared here (not in a function)
make[4]: *** [tnl/t_vb_arbshader.o] Error 1
make[4]: Leaving directory `/usr/src/r300/Mesa/src/mesa'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/usr/src/r300/Mesa/src/mesa'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/src/r300/Mesa/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/usr/src/r300/Mesa'
make: *** [linux-dri-x86-64] Error 2
| |
|
Back to top |
|
|
Pancu l33t
Joined: 16 Feb 2005 Posts: 612 Location: Cesena
|
Posted: Thu Mar 16, 2006 9:47 pm Post subject: |
|
|
no one can i help me????
|
|
Back to top |
|
|
weedy Apprentice
Joined: 24 Jun 2005 Posts: 247
|
Posted: Fri Mar 17, 2006 9:17 am Post subject: |
|
|
Does agp have to be a module?
Code: | (WW) RADEON(0): Enabling DRM support
*** Direct rendering support is highly experimental for Radeon 9500
*** and newer cards. The 3d mesa driver is not provided in this tree.
*** A very experimental (and incomplete) version is available from Mesa CVS.
*** Additional information can be found on http://r300.sourceforge.net
*** This message has been last modified on 2005-08-07.
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenByBusid: drmOpenMinor returns 6
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) RADEON(0): [drm] DRM interface version 1.2
(II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:01:00.0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xf96bc000
(II) RADEON(0): [drm] mapped SAREA 0xf96bc000 to 0xb789d000
(II) RADEON(0): [drm] framebuffer handle = 0xc0000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(WW) RADEON(0): [agp] AGP not available
(EE) RADEON(0): [agp] AGP failed to initialize. Disabling the DRI.
(II) RADEON(0): [agp] You may want to make sure the agpgart kernel module
is loaded before the radeon kernel module.
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xf96bc000 at 0xb789d000 |
|
|
Back to top |
|
|
Kanniball Apprentice
Joined: 23 Jan 2004 Posts: 208 Location: Portugal
|
Posted: Tue Mar 28, 2006 4:14 pm Post subject: |
|
|
weedy wrote: | Does agp have to be a module?
|
no, I have it working with agp in kernel.
make sure you have selected suport for your chipset, for example if you have an nforce board you need to select support for agp and for nforce, under /dev/agpgart (AGP Support) |
|
Back to top |
|
|
Kanniball Apprentice
Joined: 23 Jan 2004 Posts: 208 Location: Portugal
|
|
Back to top |
|
|
xtbasic n00b
Joined: 27 Nov 2004 Posts: 51
|
Posted: Sat Apr 01, 2006 5:40 pm Post subject: |
|
|
I finally got this working on my M10/M11 9700 mobility.
Using the new Mesa 6.5.0 in portage.
Make sure in your kernel config that the DRM support is disabled
After emerging Mesa 6.5.0 and starting xorg7, it would load the driver
but was complaining that DRM was 2.0.0 and it was expecting 2.4.x
To fix this I used (from the CLI):
Quote: |
cd /usr/src
cvs -d:pserver:anonymous@cvs.freedesktop.org:/cvs/dri login
cvs -z3 -d:pserver:anonymous@cvs.freedesktop.org:/cvs/dri co drm
cd /usr/src/drm/linux-core
make clean
make DRM_MODULES="radeon"
rmmod radeon
rmmod drm
cp /usr/src/drm/linux-core/*.ko /lib/modules/$(uname -r)/kernel/drivers/char/drm/
depmod -ae
modprobe radeon |
This above installs the new drm that works with the r300 driver.
And restarted X with a working xorg.conf and wahlah!
Quote: |
libGL: XF86DRIGetClientDriverName: 4.0.3 r300 (screen 0)
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/r300_dri.so
....
direct rendering: Yes
|
|
|
Back to top |
|
|
RMX n00b
Joined: 22 Aug 2004 Posts: 66
|
Posted: Thu Apr 13, 2006 7:53 pm Post subject: |
|
|
22:51 rmx:~% fglrxinfo
Xlib: extension "XFree86-DRI" missing on display ":0.0".
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.2.1)
Please help... |
|
Back to top |
|
|
|