Re: Xnvidia?

[email protected]
Newsgroups gmane.comp.freedesktop.xserver
Message-ID <[email protected]>
I was wondering if its possible to write a wrapper
around the standard driver calls that map it to
kdriver, so i can use, for example, the nvidia driver
w/ kdrive.
>>>>>>>>>>>>>>>>>
I've looked into this. It would probably be pretty hairy. The NVIDIA driver
makes 241 different calls into the X server. These fall into 4 catagories:

1) Trivial mappings : Subsitute malloc(), cos(), etc for Xalloc(), xf86cos(), etc.
2) XF86-specific functions : Dealing with graphics contexts, backing store etc.
3) Hardware access routines : Functions to read registers, mmap()'ed areas, etc.
4) Driver support routines : The mi* functions.

I don't know how similar kdrive and XFree86 are, but (2) and (4) would be really
hard, especially without source code to the driver.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.