Re: AMD64 patch for flavio's fglrx debs

2005-01-28 Thread Ludovic watteaux
Thanks, i forgot to put the symlink  /usr/X11R6/lib64 to /usr/X11R6/lib.
That's verry Nice !

sh-3.00$ glxgears
6745 frames in 5.0 seconds = 1349.000 FPS
Stable.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: AMD64 patch for flavio's fglrx debs

2005-01-28 Thread Davide Puricelli
On Fri, Jan 28, 2005 at 11:58:17AM +, Ludovic watteaux wrote:
> Ok your patch is very nice.
> That work for me.
>  VIAK8
>  Radeon Mobility 9600
>  Kernel 2.6.10
>  Debian AMD64/GCC3.4
> 
> But performance is not realy there !
> before glxgear = 150 fps
> Afterglxgear = 472 fps

[snip]

Do an "export LIBGL_DRIVERS_PATH=/usr/X11R6/lib/modules/dri/" before
executing startx, this should resolve your issues.

Regards,
-- 
Davide Puricelli, [EMAIL PROTECTED]
Debian Developer: [EMAIL PROTECTED] | http://www.debian.org

Time looked like snow dropping silently into a black room -- Ray Bradbury


signature.asc
Description: Digital signature


Re: AMD64 patch for flavio's fglrx debs

2005-01-28 Thread Filippo Carone
* Ludovic watteaux ([EMAIL PROTECTED]) ha scritto:
> 
> h-3.00$ fglrxinfo
> display: :0.0  screen: 0
> OpenGL vendor string: Mesa project: www.mesa3d.org
> OpenGL renderer string: Mesa GLX Indirect
> OpenGL version string: 1.3 Mesa 4.0.4
> 
> I don't have the performance of  Johannes Pleikies :
> > After this the estimated fps in glxgears raised from 150 to 1750.
> Is it  normal ? 

 Maybe fglrx libGL.so.1.2 is not in place. The vendor string should be
"ATI  ..".

 cheers


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: AMD64 patch for flavio's fglrx debs

2005-01-28 Thread Ludovic watteaux
Ok your patch is very nice.
That work for me.
 VIAK8
 Radeon Mobility 9600
 Kernel 2.6.10
 Debian AMD64/GCC3.4

But performance is not realy there !
before glxgear = 150 fps
Afterglxgear = 472 fps

Error with fgl_glxgears !

sh-3.00$ fgl_glxgears
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  131 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  33
  Current serial number in output stream:  33

h-3.00$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4

From dmesg :
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, 
GERMANY' taints kernel.
[fglrx] Maximum main memory to use for locked dma buffers: 428 MBytes.
[fglrx] module loaded - fglrx 8.8.25 [Jan 14 2005] on minor 0
[fglrx] AGP detected, AgpState   = 0x1f000a1b (hardware caps of chipset)
agpgart: Found an AGP 3.5 compliant device at :00:00.0.
agpgart: Putting AGP V3 device at :00:00.0 into 8x mode
agpgart: Putting AGP V3 device at :01:00.0 into 8x mode
[fglrx] AGP enabled,  AgpCommand = 0x1f000312 (selected caps)
[fglrx] free  AGP = 256126976
[fglrx] max   AGP = 256126976
[fglrx] free  LFB = 55570432
[fglrx] max   LFB = 55570432
[fglrx] free  Inv = 0
[fglrx] max   Inv = 0
[fglrx] total Inv = 0
[fglrx] total TIM = 0
[fglrx] total FB  = 0
[fglrx] total AGP = 65536

I don't have the performance of  Johannes Pleikies :
> After this the estimated fps in glxgears raised from 150 to 1750.
Is it  normal ? 

Greetings
Ludovic




Re: AMD64 patch for flavio's fglrx debs

2005-01-27 Thread Goswin von Brederlow
Ludovic watteaux <[EMAIL PROTECTED]> writes:

> I have a error after do :
> fakeroot debian/rules binary
>
> dh_testdir
> ...
> ...
> long messages make etc, ..
> And 
> ..
> dh_installdeb
> dh_shlibdeps
> debian/fglrx-driver/emul/ia32-linux/usr/X11R6/lib/modules/dri/fglrx_dri.so: 
> error while loading shared libraries: libfakeroot.so.0: cannot open shared 
> object file: No such file or directory
> dpkg-shlibdeps: failure: ldd on 
> `debian/fglrx-driver/emul/ia32-linux/usr/X11R6/lib/modules/dri/fglrx_dri.so' 
> gave error exit status 1
> dh_shlibdeps: command returned error code 256
> make: *** [binary] Erreur 1
>
> What is wrong for me ?
>
> There's the complete outpout on the attached file.
> Thanks.
> Ludovic

Small apendum:

[EMAIL PROTECTED]:~% fakeroot /var/chroot/bin/sh 
/var/chroot/bin/sh: error while loading shared libraries: libfakeroot.so.0: 
cannot open shared object file: No such file or directory

Same error trying to run a 32bit sh under fakeroot.

MfG
Goswin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: AMD64 patch for flavio's fglrx debs

2005-01-27 Thread Goswin von Brederlow
Ludovic watteaux <[EMAIL PROTECTED]> writes:

> I have a error after do :
> fakeroot debian/rules binary
>
> dh_testdir
> ...
> ...
> long messages make etc, ..
> And 
> ..
> dh_installdeb
> dh_shlibdeps
> debian/fglrx-driver/emul/ia32-linux/usr/X11R6/lib/modules/dri/fglrx_dri.so: 
> error while loading shared libraries: libfakeroot.so.0: cannot open shared 
> object file: No such file or directory
> dpkg-shlibdeps: failure: ldd on 
> `debian/fglrx-driver/emul/ia32-linux/usr/X11R6/lib/modules/dri/fglrx_dri.so' 
> gave error exit status 1
> dh_shlibdeps: command returned error code 256
> make: *** [binary] Erreur 1
>
> What is wrong for me ?
>
> There's the complete outpout on the attached file.
> Thanks.
> Ludovic

Best guess is that the 64bit fakeroot that puts itself into the
ld-preload conflicts with the 32bit module.

Try building with sudo or as root. If that works I would definetly say
fakeroot is the culprit. And if it is I don't see anything that can be
done there to resolve this. This could be bad.

MfG
Goswin



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: AMD64 patch for flavio's fglrx debs

2005-01-27 Thread Ludovic watteaux

I have a error after do :
fakeroot debian/rules binary

dh_testdir
...
...
long messages make etc, ..
And 
..
dh_installdeb
dh_shlibdeps
debian/fglrx-driver/emul/ia32-linux/usr/X11R6/lib/modules/dri/fglrx_dri.so: 
error while loading shared libraries: libfakeroot.so.0: cannot open shared 
object file: No such file or directory
dpkg-shlibdeps: failure: ldd on 
`debian/fglrx-driver/emul/ia32-linux/usr/X11R6/lib/modules/dri/fglrx_dri.so' 
gave error exit status 1
dh_shlibdeps: command returned error code 256
make: *** [binary] Erreur 1

What is wrong for me ?

There's the complete outpout on the attached file.
Thanks.
Ludovic


sh-3.00$ dpkg-source -x fglrx-installer_8.8.25-1.dsc
dpkg-source: extracting fglrx-installer in fglrx-installer-8.8.25
sh-3.00$ cd fglrx-installer-8.8.25

sh-3.00$ patch -p1 < fglrx-amd64.diff
patching file debian/control
patching file debian/postrm
patching file debian/preinst
patching file debian/rules
patching file module/control.template

sh-3.00$ fakeroot debian/rules binary
dh_testdir
rpm2cpio fglrx64_4_3_0-8.8.25-1.x86_64.rpm | cpio -i -d --no-preserve-owner
44614 blocks
# extract panel source and build it
mkdir -p extra_src/panel
tar xfzC usr/src/ATI/fglrx_panel_sources.tgz extra_src/panel
patch -d extra_src/panel -p1 -i /home/amd64/ati/deb/fglrx-installer-8.8.25/debia
n/patches-8.8.25/panel.diff
patching file ATITVOExtensions.c
patching file FGLRXExtensions.c
patching file Makefile
make -C extra_src/panel QTDIR=/usr/share/qt3
make[1]: entrant dans le répertoire « /home/amd64/ati/deb/fglrx-installer-8.8.25
/extra_src/panel »
gcc -c -g -O2 -fno-strength-reduce -funsigned-char -Dlinux -DFGLRX_USE_XEXTENSIO
NS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/X11R6/include -I. -I./include_dummy FGLRX
Extensions.c
gcc -c -g -O2 -fno-strength-reduce -funsigned-char -Dlinux -DFGLRX_USE_XEXTENSIO
NS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/X11R6/include -I. -I./include_dummy ATITV
OExtensions.c
ATITVOExtensions.c: Dans la fonction « ExtATITVOSetData »:
ATITVOExtensions.c:592: attention : cast from pointer to integer of different si
ze
ATITVOExtensions.c:594: attention : cast from pointer to integer of different si
ze
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy main.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy Sheet.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy Page.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy InfoPage.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy DualScreenPage.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy AdjustPage.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy TVoutAdjustPage.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy BoardInfo.cpp
/usr/share/qt3/bin/moc Sheet.h -o moc_Sheet.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy moc_Sheet.cpp
/usr/share/qt3/bin/moc Page.h -o moc_Page.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy moc_Page.cpp
/usr/share/qt3/bin/moc InfoPage.h -o moc_InfoPage.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy moc_InfoPage.cpp
/usr/share/qt3/bin/moc DualScreenPage.h -o moc_DualScreenPage.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy moc_DualScreenPage.cpp
/usr/share/qt3/bin/moc AdjustPage.h -o moc_AdjustPage.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_
dummy moc_AdjustPage.cpp
/usr/share/qt3/bin/moc TVoutAdjustPage.h -o moc_TVoutAdjustPage.cpp
g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XE
XTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -

Re: AMD64 patch for flavio's fglrx debs

2005-01-20 Thread Peter Nelson
Peter Nelson wrote:
Cyril Chaboisseau wrote:
BTW, I have kernel-patch-debian-2.6.10 but that shouldn't make any
difference for the compilation of the module
There are known problems compiling against 2.6.10.  Look at this 
thread on rage3d for some patches:
http://rage3d.net/board/showthread.php?t=33798874
Sorry, I'm an idiot.  From Flavio's site:
   The kernel module doesn't compile out-of-the-box with kernel 2.6.10,
   however an official patch is available in this Rage3D forum
   . This patch
   is already included in my packages, you don't need to apply it yourself.
You must be seeing something else.  I'm not sure what error you're 
seeing, but try posting at rage3d as there are more knowledable people 
there.

-Peter
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: AMD64 patch for flavio's fglrx debs

2005-01-20 Thread Peter Nelson
Cyril Chaboisseau wrote:
Le 19 janvier vers 22:33, Peter Nelson écrivait:
 

Here's a patch I've made against flavio's latest fglrx packages to 
generate amd64 debs.  I *think* it does the right thing placing the 
32bit drivers in /emul/ia32-linux/usr/X11R6/lib/ and the 64bit ones in 
/usr/X11R6/lib/, with the correct diversions.  It works for me, but I 
don't have any real games to test the 32bit compatability with.
   

the compilation of the packages went almost smoothly (I just had to
modify a couple usr/X11R6/lib to usr/X11R6/lib64) 

Don't change any of the lib/lib64's.  Other than symlinking lib64 to 
lib, my patch includes all the changes that are needed.

BTW, I have kernel-patch-debian-2.6.10 but that shouldn't make any
difference for the compilation of the module
There are known problems compiling against 2.6.10.  Look at this thread 
on rage3d for some patches:
http://rage3d.net/board/showthread.php?t=33798874

-Peter
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: AMD64 patch for flavio's fglrx debs

2005-01-20 Thread Johannes Pleikies
Am Donnerstag, 20. Januar 2005 23:22 schrieb Peter Nelson:
> I have a feeling that the drivers are hard-coded to use the lib64 X11
> directory, though I can't find where they are.  Try making a symlink from
> /usr/X11R6/lib64 to lib and see if it works without that export.
>
> If that works should the symlink be added to this package, left up to the
> user to fix, or added to an other package?
>

I added a symlink  /usr/X11R6/lib64 to /usr/X11R6/lib and now it works without 
the export.
That think this is the easiest solution.
Thanks.

Johannes


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: AMD64 patch for flavio's fglrx debs

2005-01-20 Thread Peter Nelson
Quoting Johannes Pleikies <[EMAIL PROTECTED]>:

> Thank you very much, this worked well for me.
You're welcome.

> I used Peter's patch and
> http://xoomer.virgilio.it/flavio.stanchina/debian/fglrx-installer.html .
yeah, I forgot to link to (and thank!) Flavio's page.

> I used the kernel-agpgart.
> After all my XFree started without any errors, but my DRI was not yet
> working.
> I found the solution at an Ubuntu-Forum:
>  export LIBGL_DRIVERS_PATH=/usr/X11R6/lib/modules/dri/
> as normal user.
I have a feeling that the drivers are hard-coded to use the lib64 X11 directory,
though I can't find where they are.  Try making a symlink from /usr/X11R6/lib64
to lib and see if it works without that export.

If that works should the symlink be added to this package, left up to the user
to fix, or added to an other package?

-Peter


This message was sent using IMP, the Internet Messaging Program.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: AMD64 patch for flavio's fglrx debs

2005-01-20 Thread Cyril Chaboisseau

 Le 19 janvier vers 22:33, Peter Nelson écrivait:
> Here's a patch I've made against flavio's latest fglrx packages to 
> generate amd64 debs.  I *think* it does the right thing placing the 
> 32bit drivers in /emul/ia32-linux/usr/X11R6/lib/ and the 64bit ones in 
> /usr/X11R6/lib/, with the correct diversions.  It works for me, but I 
> don't have any real games to test the 32bit compatability with.

the compilation of the packages went almost smoothly (I just had to
modify a couple usr/X11R6/lib to usr/X11R6/lib64) but then the
compilation of the kernel had one error :

-->%->%->%->%->%->%->%->%->%->%---
# make-kpkg --revision adren1 modules_image
for module in /usr/src/modules/fglrx-kernel-src ; do   \
  if test -d  $module; then\
(cd $module;  \
  if ./debian/rules KVERS="2.6.10" KSRC="/usr/src/linux" \
 KMAINT="Unknown Kernel Package Maintainer" 
KEMAIL="[EMAIL PROTECTED]"  \
 KPKG_DEST_DIR="/usr/src/linux/.."   \
 KPKG_MAINTAINER="Unknown Kernel Package 
Maintainer"\
 KPKG_EXTRAV_ARG=""\
 ARCH="x86_64"  \
 KDREV="adren1" kdist_image; then\
  echo "Module $module processed fine";\
  else  \
   echo "Module $module failed.";  \
   if [ "X" != "X" ]; then  \
  echo "Perhaps $module does not understand --rootcmd?";  \
  echo "If you see messages that indicate that it is not"; \
  echo "in fact being built as root, please file a bug ";  \
  echo "against $module."; \
   fi;  \
   echo "Hit return to Continue";   \
 read ans;\
  fi;   \
 );\
  fi;  \
done
make[1]: Entering directory `/usr/src/modules/fglrx-kernel-src'
if [ -f /usr/src/modules/fglrx-kernel-src/debian/control.template ]; then \
cat /usr/src/modules/fglrx-kernel-src/debian/control.template > 
/usr/src/modules/fglrx-kernel-src/debian/control; \
fi
dh_testdir
touch configure-stamp
dh_testdir
/usr/bin/make -C /usr/src/linux SUBDIRS=/usr/src/modules/fglrx-kernel-src 
modules
make[2]: Entering directory `/usr/src/linux-2.6.10'
  CC [M]  /usr/src/modules/fglrx-kernel-src/agp3.o
  CC [M]  /usr/src/modules/fglrx-kernel-src/nvidia-agp.o
  CC [M]  /usr/src/modules/fglrx-kernel-src/agpgart_be.o
  CC [M]  /usr/src/modules/fglrx-kernel-src/i7505-agp.o
  CC [M]  /usr/src/modules/fglrx-kernel-src/firegl_public.o
/usr/src/modules/fglrx-kernel-src/firegl_public.c: In function 
`firegl_stub_putminor':
/usr/src/modules/fglrx-kernel-src/firegl_public.c:511: warning: 
`inter_module_put' is deprecated (declared at include/linux/module.h:582)
/usr/src/modules/fglrx-kernel-src/firegl_public.c:513: warning: 
`inter_module_unregister' is deprecated (declared at include/linux/module.h:578)
/usr/src/modules/fglrx-kernel-src/firegl_public.c: In function 
`firegl_stub_register':
/usr/src/modules/fglrx-kernel-src/firegl_public.c:533: warning: 
`inter_module_register' is deprecated (declared at include/linux/module.h:577)
/usr/src/modules/fglrx-kernel-src/firegl_public.c:564: warning: 
`inter_module_put' is deprecated (declared at include/linux/module.h:582)
/usr/src/modules/fglrx-kernel-src/firegl_public.c: In function 
`firegl_get_user_ptr':
/usr/src/modules/fglrx-kernel-src/firegl_public.c:1073: warning: assignment 
makes pointer from integer without a cast
/usr/src/modules/fglrx-kernel-src/firegl_public.c: In function 
`firegl_put_user_ptr':
/usr/src/modules/fglrx-kernel-src/firegl_public.c:1105: warning: cast from 
pointer to integer of different size
/usr/src/modules/fglrx-kernel-src/firegl_public.c:1105: warning: cast from 
pointer to integer of different size
/usr/src/modules/fglrx-kernel-src/firegl_public.c:1105: warning: cast from 
pointer to integer of different size
/usr/src/modules/fglrx-kernel-src/firegl_public.c:1105: warning: cast from 
pointer to integer of different size
/usr/src/modules/fglrx-kernel-src/firegl_public.c: In function `__ke_vm_map':
/usr/src/modules/fglrx-kernel-src/firegl_public.c:2707: warning: 
`remap_page_range' is deprecated (declared at include/linux/mm.h:770)
/usr/src/modules/fglrx-kernel-src/firegl_public.c:2774: warning: 
`remap_page_range' is deprecated (declared at include/linux/mm.h:770)
/usr/src/modules/fglrx-kernel-s

Re: AMD64 patch for flavio's fglrx debs

2005-01-20 Thread Johannes Pleikies
Thank you very much, this worked well for me.

I have:
 VIAK8T800
 Radeon Mobility 9700
 Kernel 2.6.10
 Debian AMD64/GCC3.4

I used Peter's patch and 
http://xoomer.virgilio.it/flavio.stanchina/debian/fglrx-installer.html .
I used the kernel-agpgart.
After all my XFree started without any errors, but my DRI was not yet working.
I found the solution at an Ubuntu-Forum:
 export LIBGL_DRIVERS_PATH=/usr/X11R6/lib/modules/dri/
as normal user.
After this the estimated fps in glxgears raised from 150 to 1750.

Thanks to Peter,
Johannes


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]