[Xpert]Re: [Dri-devel] Savage and nVidia DRI drivers

2002-11-02 Thread Linus Torvalds
On Thu, 31 Oct 2002, Keith Whitwell wrote:
> 
> On voodoo-1, even vertices that aren't snapped to 1/16th(?) subpixel coords 
> will crash it...  Hmmm, you can't do fp in the kernel, right?

You _can_ use FP, but you have to jump through hoops to do so, especially 
if you're in an asynchronous context (ie interrupt or similar).

In process context (ie ioctl() code) you could just decide that part of 
the calling convention of the ioctl() is that the FP register state is 
corrupted, and use FP fairly freely - but realizing that FP usage is 
basically the same as "access to user mode" and can cause traps. 

Oh, and getting an FP exception in the kernel is _definitely_ illegal, and
can (and does) cause a hung box. The FP exception handling depends on a 
signal handler cleaning the thing up.

In general, the rule would be: don't do it. It's possible, but there are a
lot of cases you have to worry about, and it would be a _lot_ better to do
the FP (including any coordinate snapping) in mesa in user mode, and maybe
just verify the values in the kernel (which can be done with fairly simple
integer arithmetic).

Linus

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert]Re: [Dri-devel] Savage and nVidia DRI drivers

2002-11-02 Thread Daryll Strauss
On Thu, Oct 31, 2002 at 03:58:29PM +, José Fonseca wrote:
> The Voodoo 2 specs are available from http://www.medex.hu/~danthe/tdfx/
> . I don't know what's the current state of the tdfx driver in respect
> with Voodoo 2. The tdfx driver is quite different from any other driver
> because it uses the Glide library and everything is done by PIO on the
> client side. Several times it was manifested the interest in bringing
> the tdfx driver up to its pairs level and cut the Glide umbilical cord
> but nothing was done in that sense.

V2 specs are publically available as Jose pointed out. The trick with
the V2 is that it really is a 3D only card. It doesn't have any sorts of
blits, or even cursor support IIRC. It does use a MMAP'd ring buffer,
not PIO.

The DRI assumes X is running. You'd have to start with that. You can use
triangles to do lines and spans and the rest you treat as a dumb frame
buffer. It'll be slow, but it is doable.

As Keith mentioned, vertices do need to be snapped to 1/16th of a
pixel. There's an integer trick for doing that. So the fp in the kernel
isn't an issue.

Cutting the Glide umbilical cord would be a good project for someone
interested. There's been several people who've brought it up, but
results have never seen the light of day.

- |Daryll
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert]Re: [Dri-devel] Savage and nVidia DRI drivers

2002-11-02 Thread Keith Whitwell
Alan Cox wrote:

On Thu, 2002-10-31 at 15:58, José Fonseca wrote:


I don't know much about SIS 6326. I know that there is some deprecated
(it hasn't been updated for the architectural changes) support for SIS 
630 chips on the CVS.


6326 is much older than 630 and 315 etc. Its in the PIO with very small
fifo category of devices. I've got the 3Dfx docs, and also some info on
the bugs (you have to verify the stream as things like misordered
triangle verticies kill the chip)


On voodoo-1, even vertices that aren't snapped to 1/16th(?) subpixel coords 
will crash it...  Hmmm, you can't do fp in the kernel, right?

Keith

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert


[Xpert]Re: [Dri-devel] Savage and nVidia DRI drivers

2002-11-02 Thread Alan Cox
On Thu, 2002-10-31 at 15:58, José Fonseca wrote:
> I don't know much about SIS 6326. I know that there is some deprecated
> (it hasn't been updated for the architectural changes) support for SIS 
> 630 chips on the CVS.

6326 is much older than 630 and 315 etc. Its in the PIO with very small
fifo category of devices. I've got the 3Dfx docs, and also some info on
the bugs (you have to verify the stream as things like misordered
triangle verticies kill the chip)

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert]Re: [Dri-devel] Savage and nVidia DRI drivers

2002-11-02 Thread Alan Cox
On Thu, 2002-10-31 at 11:26, Keith Whitwell wrote:
> At one point there was a shadowfb based 2d driver for the voodoo cards -- it 
> would be interesting an interesting approach to add a dri layer to that 
> driver, if it still exists.

I use it on several boxes. It has some endian limitations (from Glide2
it seems) but works well. Because the card doesn't claim to be VGA and
can be initialized from ground up its very useful in embedded work or on
non x86

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert]Re: [Dri-devel] Savage and nVidia DRI drivers

2002-11-02 Thread Keith Whitwell

Count me in as much as I can help. I can make the hardware sing but I
know zilch about the Mesa end of things. I'm also interested in Voodoo2
since its for many people the best video card you can shove in old hppa
boxes and in sis 6326 (because its a good simplicity test)


At one point there was a shadowfb based 2d driver for the voodoo cards -- it 
would be interesting an interesting approach to add a dri layer to that 
driver, if it still exists.

Keith




___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert


[Xpert]Re: [Dri-devel] Savage and nVidia DRI drivers

2002-11-02 Thread Alan Cox
On Thu, 2002-10-31 at 02:16, José Fonseca wrote:
> project. Also the proprietary nVidia Linux drivers come with some source
> code (which was also the basis for the Utah-GLX drivers).

I have the last release they did that was merely all obfuscated, and
some tools for partially deobfuscating it. That shows how to drive the
nv03 and nv04 architectural sets.

> People which are interested in having these drivers see the light of day
> (I know that the Savage chip is common on laptops and AFAIK there no
> nVidia proprietary drivers for non-Linux non-x86 platforms) are surely 
> welcome to help, as they can turn this small project of mine in something 
> definite.

Count me in as much as I can help. I can make the hardware sing but I
know zilch about the Mesa end of things. I'm also interested in Voodoo2
since its for many people the best video card you can shove in old hppa
boxes and in sis 6326 (because its a good simplicity test)


___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert]Re: [Dri-devel] Savage and nVidia DRI drivers

2002-10-31 Thread José Fonseca
On Thu, Oct 31, 2002 at 11:39:42AM +, Alan Cox wrote:

On Thu, 2002-10-31 at 02:16, José Fonseca wrote:

People which are interested in having these drivers see the light of day
(I know that the Savage chip is common on laptops and AFAIK there no
nVidia proprietary drivers for non-Linux non-x86 platforms) are surely 
welcome to help, as they can turn this small project of mine in something 
definite.

Count me in as much as I can help. I can make the hardware sing but I
know zilch about the Mesa end of things. I'm also interested in Voodoo2
since its for many people the best video card you can shove in old hppa
boxes and in sis 6326 (because its a good simplicity test)



The Voodoo 2 specs are available from http://www.medex.hu/~danthe/tdfx/
. I don't know what's the current state of the tdfx driver in respect
with Voodoo 2. The tdfx driver is quite different from any other driver
because it uses the Glide library and everything is done by PIO on the
client side. Several times it was manifested the interest in bringing
the tdfx driver up to its pairs level and cut the Glide umbilical cord
but nothing was done in that sense.

I don't know much about SIS 6326. I know that there is some deprecated
(it hasn't been updated for the architectural changes) support for SIS 
630 chips on the CVS.

José Fonseca
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert