New glucose code
Alan Hourihane
alanh at fairlite.demon.co.uk
Thu Mar 29 03:13:08 PDT 2007
On Wed, 2007-03-28 at 21:30 +0100, Alan Hourihane wrote:
> On Wed, 2007-03-28 at 16:37 +0200, David Reveman wrote:
> > On Wed, 2007-03-28 at 20:38 +0100, Alan Hourihane wrote:
> > > On Wed, 2007-03-28 at 15:29 +0200, David Reveman wrote:
> > > > On Wed, 2007-03-28 at 16:07 +0100, Alan Hourihane wrote:
> > > > > Carrying on from Zack's original idea and code, I've released some new
> > > > > code on the glucose-2 branch which goes all the way to allowing xorg
> > > > > drivers to use the xgl acceleration paths.
> > > > >
> > > > > It's a simple one line call to initialize glucose in the driver as I
> > > > > mentioned in the commit message. It's...
> > > > >
> > > > > glucoseScreenInit(pScreen);
> > > > >
> > > > > So, initialization only need to change such as .....
> > > > >
> > > > > if (!exa && !xaa)
> > > > > glucoseScreenInit(pScreen);
> > > > > else if (!exa)
> > > > > driversXAAinit(...);
> > > > > else
> > > > > driversEXAinit(...);
> > > > >
> > > > > It also works with Mesa's software renderer too, but is obviously slow,
> > > > > but useful as a testing harness.
> > > > >
> > > > > There's still a few niggly issues such as server shutdown causes
> > > > > failures, but I'm working on those. There are also some rendering
> > > > > glitches depending on which 3D driver you use, but they could well be
> > > > > problems in the respective 3D drivers. Usually good to test with Mesa by
> > > > > disabling DRI to check this.
> > > > >
> > > > > As I've said, all the new code is on the glucose-2 branch, but I'll be
> > > > > working to stabilize it and hopefully merge to the trunk in the future.
> > > > >
> > > > > If there's any comments, etc, post away, and feel free to bang on the
> > > > > code.
> > > > >
> > > > > Alan.
> > > >
> > > > Great work Alan! This is exactly what I've been wanting to do for some
> > > > time now but never got around to it.
> > > >
> > > > Do you want me to move the glucose glitz backend into the glitz repo?
> > >
> > > I'm not sure it makes a sense to be in glitz as it's not a client-side
> > > piece of code. It's server-side only. But then there's the glitz_gl.h
> > > and glitzint.h header files that I've had to replicate in the
> > > server-side code. So I'm kinda torn on this. If anyone here has
> > > preferences it'd be good to hear them. Otherwise I guess I'd be o.k. in
> > > moving them into glitz, seeing as glucose needs glitz anyway.
> >
> > I don't see any reason to why we should avoid putting the glucose
> > backend where the other backends exist because it's not for client-side
> > usage. I'll put it in glitz repo and add a glitz-glucose.pc file if you
> > don't mind.
>
> Sure.
On this basis. It might be worth opening up the glitz repo to xorg
developers.
Additionally, it's probably also worth moving glitz to a git repo too.
Alan.
More information about the xorg
mailing list