[Cooker] Fwd: Re: [utah-glx-users] Utah-GLX Patch for 2.2.15

2000-06-10 Thread Peter Ruskin


--  Forwarded Message  --
Subject: Re: [utah-glx-users] Utah-GLX Patch for 2.2.15
Date: Sat, 10 Jun 2000 23:29:59 +0100
From: Peter Ruskin <[EMAIL PROTECTED]>


I finally got GLX working again on my Mandrake 7.0-2 -> 7.1
box.  I downloaded  2.2.16-1mdk kernel, did 
`rm -f /usr/src/linux/include/linux/agpgart.h' then sucessfully
applied the Utah `/usr/local/glx/newagp/agpgart-2.2.13.patch'
patch.  Here are the results for my PentiumIIMMX-400 box
with 380MB RAM and Matrox G400-32MB card.  I'm quite
impressed!

#*
[/usr/local/glx/mesa/demos]# ./bounce   # works fine
sending isdirect request
isdirect succeeded
going direct
got reply mgaGLXClientInit
try to open /usr/X11R6/lib/modules/glx.so:
opened /usr/X11R6/lib/modules/glx.so
found init func
got api pointers
got dispatch table
calling init func:
Sucessfully loaded X11 client symbols
nvisual=32 (0+32)
glx extension init:
Initializing logs
[mga] mgaInitGLX completed
adding direct client:
Creating new client: 1!
Adding client as resource: 68!
finished glxInitDirectClient:
@@Created GLX Context..
Adding drawable 92274689 to glWindows list:   

#*
[/usr/local/glx/mesa/demos]# ./clearspd # works fine   
 
For options:  clearspd -help  
Mode:  RGB
SwapBuffers: no   
Size: 400 x 400   
Buffers: color
found init func
got api pointers
got dispatch table
calling init func:
Sucessfully loaded X11 client symbols
nvisual=32 (0+32)
glx extension init:
Initializing logs
[mga] mgaInitGLX completed
adding direct client:
Creating new client: 1!
Adding client as resource: 68!
finished glxInitDirectClient:
@@Created GLX Context..
Adding drawable 92274689 to glWindows list:
Rate: 25600 clears in 2.741s = 9339.66 clears/s   1494345129 pixels/s
Rate: 25600 clears in 2.701s = 9477.97 clears/s   1516475379 pixels/s
Rate: 25600 clears in 2.705s = 9463.96 clears/s   1514232902 pixels/s
  
#*
[/usr/local/glx/mesa/demos]# ./drawpix  # works fine   
   
sending isdirect request  
isdirect succeeded
going direct  
got reply mgaGLXClientInit
try to open /usr/X11R6/lib/modules/glx.so:
opened /usr/X11R6/lib/modules/glx.so  
found init func   
got api pointers  
got dispatch table
calling init func:
Sucessfully loaded X11 client symbols 
Loaded 194 by 188 image
Keys:
   SPACE  Reset Parameters
 Up/Down  Move image up/down
  Left/Right  Move image left/right
   x  Decrease X-axis PixelZoom
   X  Increase X-axis PixelZoom
   y  Decrease Y-axis PixelZoom
   Y  Increase Y-axis PixelZoom
   w  Decrease glDrawPixels width*
   W  Increase glDrawPixels width*
   h  Decrease glDrawPixels height*
   H  Increase glDrawPixels height*
   p  Decrease GL_UNPACK_SKIP_PIXELS*
   P  Increase GL_UNPACK_SKIP_PIXELS*
   r  Decrease GL_UNPACK_SKIP_ROWS*
   R  Increase GL_UNPACK_SKIP_ROWS*
   s  Toggle GL_SCISSOR_TEST
   f  Toggle front/back buffer drawing
   b  Benchmark test
 ESC  Exit
* Warning: no limits are imposed on these parameters so it's
  possible to cause a segfault if you go too far.  
   
#*
[/usr/local/glx/mesa/demos]# ./gamma# works fine 
sending isdirect request
isdirect succeeded
going direct
got reply mgaGLXClientInit
try to open /usr/X11R6/lib/modules/glx.so:
opened /usr/X11R6/lib/modules/glx.so
found init func
got api pointers
got dispatch table
calling init func:
Sucessfully loaded X11 client symbols
nvisual=32 (0+32)
glx extension init:
Initializing logs
[mga] mgaInitGLX completed
adding direct client:
Creating new client: 1!
Adding client as resource: 68!
finished glxInitDirectClient:
@@Created GLX Context..
Adding drawable 9227468

[Cooker] Fwd: Re: [utah-glx-users] Utah-GLX Patch for 2.2.15

2000-06-05 Thread Peter Ruskin

This is my first posting to the Cooker list.  I'm forwarding
correspondence regarding problems getting glx compiled in the new kernel
2.2.15-13mdk, hoping that someone on the list may have experienced the
problem and overcome it ... Thanks, Peter

 --  Forwarded Message  --
Subject: Re: [utah-glx-users] Utah-GLX Patch for 2.2.15
Date: Mon, 5 Jun 2000 11:01:40 +0100
From: Peter Ruskin <[EMAIL PROTECTED]>


Thanks for your advice.  I just tried
# cat /usr/local/glx/newagp/agpgart-2.2.13.patch | patch -p1'
with the following result ... 
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|diff -u -r -N linux-orig/arch/i386/mm/ioremap.c linux/arch/i386/mm/ioremap.c
|--- linux-orig/arch/i386/mm/ioremap.c  Mon Aug  9 14:04:38 1999
|+++ linux/arch/i386/mm/ioremap.c   Mon Nov 29 21:45:33 1999
--
File to patch:  ...

linux-2.2.15-13mdk seems to have had the agpgart patch installed at
source and then messed up.  All the agp files are in the source tree but,
if I don't apply the patch, when I make xconfig the agpgart option doesn't appear.

This is what I get with p0 ...
# cat /usr/local/glx/newagp/agpgart-2.2.13.patch | patch -p0
patching file linux/arch/i386/mm/ioremap.c
patching file linux/drivers/char/Config.in
Hunk #1 succeeded at 66 (offset 6 lines).
Hunk #2 succeeded at 114 (offset 3 lines).
patching file linux/Documentation/Configure.help
Hunk #1 succeeded at 10401 (offset 1122 lines).
patching file linux/drivers/char/Makefile
Hunk #1 succeeded at 363 (offset 37 lines).
patching file linux/drivers/char/agp/Makefile
patching file linux/drivers/char/agp/agp_backend.c
patching file linux/drivers/char/agp/agp_backendP.h
patching file linux/drivers/char/agp/agpgart_fe.c
patching file linux/include/linux/agp_backend.h
The next patch would create the file linux/include/linux/agpgart.h,
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file linux/include/linux/agpgart.h.rej   

Make modules then falls over with ...
agpgart_fe.c: In function `agp_find_mem_by_key':   

agpgart_fe.c:58: invalid use of undefined type `struct agp_front_data'
agpgart_fe.c:61: invalid use of undefined type `struct agp_front_data'
agpgart_fe.c: In function `agp_remove_from_pool':
agpgart_fe.c:94: invalid use of undefined type `struct agp_front_data'
agpgart_fe.c: At top level:
agpgart_fe.c:105: parse error before `*'
agpgart_fe.c:105: warning: type defaults to `int' in declaration of `agp_client'
agpgart_fe.c:105: parse error before `*'
agpgart_fe.c:108: warning: return-type defaults to `int'
agpgart_fe.c:108: warning: function declaration isn't a prototype
agpgart_fe.c: In function `agp_find_seg_in_client':
.
.
.
agpgart_fe.c:1067: initializer element is not constant
agpgart_fe.c:1067: (near initialization for `agp_miscdev.minor')
agpgart_fe.c: In function `agp_frontend_initialize':
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1075: warning: implicit declaration of function `AGP_LOCK_INIT'
agpgart_fe.c:1078: `AGPGART_MINOR' undeclared (first use in this function)
agpgart_fe.c: At top level:
agpgart_fe.c:52: storage size of `agp_fe' isn't known
agpgart_fe.c: In function `agp_allocate_memory_wrap':
agpgart_fe.c:220: warning: `prev' might be used uninitialized in this function
make[3]: *** [agpgart_fe.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.2.15/drivers/char/agp'
make[2]: *** [_modsubdir_agp] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.15/drivers/char'
make[1]: *** [_modsubdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.15/drivers'
make: *** [_mod_drivers] Error 2   


Any advice would be appreciated.

On Sat, 03 Jun 2000, you wrote:
> On Sat, 3 Jun 2000, Peter Ruskin wrote:
> 
> > Hi,
> > I was using Utah-GLX successfully on kernel 2.2.13 and 2.2.14.  Now I am
> > upgrading the kernel to linux-2.2.15-13mdk from the Mandrake Cooker site
> > and the 2.2.13 patch fails.  Your web site only offers links to the 2.2.13
> > patch.  Is there a newer one?
> 
> The 2.2.13 patch applies works (with some offsets) with stock 2.2.15,
> which is why there's been no update. Did you try 'patch -p1'? Does the
> mandrake kernel already have agpgart included?
> 
>  -ralph

-- 

--
 Peter Ruskin  <[EMAIL PROTECTED]>
 Wrexham, UK  KDE - the professionals' choice