Re: sharing DRI binaries between X and solo

2004-07-17 Thread Keith Packard
Around 18 o'clock on Jul 17, Jon Smirl wrote: > The use of the XFree routines are guarded like this: > > #if defined(XFree86LOADER) && defined(IN_MODULE) >xf86free(ptr); > #else >free(ptr); > #endif Ah. The XFree86 loader "wraps" libc to attempt to make calls libc-independent (it isn't

Re: sharing DRI binaries between X and solo

2004-07-17 Thread Adam Jackson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 17 July 2004 22:34, Jon Smirl wrote: > What mesa code uses the lines protected by these defines? Building > linux-dri does not use this code. In fact linux-dri doesn't even need > the X11 headers to build. > > XFree86LOADER > XFree86Server

Re: sharing DRI binaries between X and solo

2004-07-17 Thread Jon Smirl
What mesa code uses the lines protected by these defines? Building linux-dri does not use this code. In fact linux-dri doesn't even need the X11 headers to build. XFree86LOADER XFree86Server IN_MODULE If these are indeed protecting dead code some significant cleanup can be done. Looking in mesa/m

Re: sharing DRI binaries between X and solo

2004-07-17 Thread Jon Smirl
The use of the XFree routines are guarded like this: #if defined(XFree86LOADER) && defined(IN_MODULE) xf86free(ptr); #else free(ptr); #endif Does XFree86LOADER and IN_MODULE impact DRI objects or is it ok to use libc ones? Now that DRI is building in the mesa tree it should be possible to

Re: sharing DRI binaries between X and solo

2004-07-17 Thread Keith Packard
Around 10 o'clock on Jul 17, Jon Smirl wrote: > Can we switch DRI/mesa to use the standard malloc/free and forget about > the one in the X server? If not we will need some kind of run-time fix up. Seems like DRI/mesa should just use malloc/free for objects which aren't related to the X server i

__driCreateNewScreen and framebuffer parameter

2004-07-17 Thread Jon Smirl
Why does __driCreateNewScreen() need the framebuffer parameter? For example in the radeon driver case there is common code that drmMap()'s the framebuffer and builds the framebuffer structure. This structure is then passed to the radeon implementation of __driCreateNewScreen() which never uses it.

sharing DRI binaries between X and solo

2004-07-17 Thread Jon Smirl
What are we going to do about DRM_USE_MALLOC? When the DRI binaries are built for X they use the malloc/free in X. These aren't there in the solo builds. Can we switch DRI/mesa to use the standard malloc/free and forget about the one in the X server? If not we will need some kind of run-time fix

[Bug 733] kernel total freeze switching X->fb (matrox)

2004-07-17 Thread bugzilla-daemon
Please do not reply to this email: if you want to comment on the bug, go to the URL shown below and enter yourcomments there. http://freedesktop.org/bugzilla/show_bug.cgi?id=733 --- Additional Comments From [EMAIL PROTECTED] 2004-07-17 09:33 --- (In reply to comment

root for DRM context creation

2004-07-17 Thread Jon Smirl
Context creation in DRM is marked as needing root access. Is this to prevent a process from doing a DOS attack by creating too many contexts? Couldn't I do the same DOS attack simply by creating lots of processes each with their own context? Is there a hardware limit on contexts? It looks to me li