> -----Original Message-----
> From: Pat Kane [mailto:[email protected]]
> Sent: Wednesday, October 07, 2009 7:38 PM
> To: McDonald, Michael-p7438c
> Cc: Adam Jackson; [email protected]
> Subject: Re: Intel Q35/Q45 fb driver?
>
>
> On Wed, Oct 7, 2009 at 8:40 PM, McDonald, Michael-p7438c
> <[email protected]> wrote:
>
> > We have the mmap version of the MIT SHM extension working
> and we now get
> > 18-21 frames/sec whereas we were getting just 2-3
> frames/sec using stock
> > X.
> Nice, I'd like to take a look at your changes.
Our current implementation is pretty kludgy. We overloaded the
XShmSegmentInfo struct by using shmid's less than -1 to mean use mmap()
and added fields for the filename and size. Then in the server, we
modified ProcShmAttach and ShmDetachSegment to recognize the shmid less
than -1 and use mmap/munmap instead of shmat/shmdt.
To do this "right", we should introduce our own request/response structs
and their own Proc routines. Maybe with a user interface with something
like
XShmMmap(Display *, XShmSegmentInfo *, char *filename, CARD32
size)
So anyway, we need to do some clean up and then see if our management is
willing to let us contribute the changes back, assuming anyone is still
interested at that point.
Mike McDonald
_______________________________________________
xorg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xorg