Re: [AD] DGA acceleration

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


First of all, thanks to everyone for the feedback!

> I suggest you post the code you're using, or patches if they're
> appropriate -- I know very little about X, and nothing about
> acceleration in X, but more pairs of eyes may help find the
> problem.

ok, here's a zip file containing modified versions of xwin.c and xalleg.h.
Sorry, I wasn't able to make diffs due to problems with CVS, making impossible
for me to recover original CVS versions of the above files.

About the problem with offsets: maybe George is right and it's due to window
borders; anyway it doesn't matter a lot if we're going to add a new driver for
DGA 2... The API is different and the old XF86DGAFillRectangle has been changed
into XDGAFillRectangle, which is much easier to use as it operates directly on
the framebuffer, without needing to pass a drawable nor a graphics context. You
just pass display, screen, coordinates, size and color, and the job is done.
So I have faith this problem will not pop up with DGA 2...

> For documentation on XF86-specific routines, I'd suggest looking
> around the XFree86 website -- they ought to be there somewhere.

Of course that was the first place I visited... But they only have man pages
online, without even pages on DGA routines. It's on their ftp that I found the
README.DGA file among the XF 4.0.1 docs, which briefly explains the DGA 2.0 API;
this contains valuable informations, and I think it's enough to start coding.

Yes, I also think the new driver could use routines from current xwin.c file...
not only the color conversion routines.

Now I have to reinstall back XF 4.0.1, and after that I'll start coding. This
may take a while as I'm under examination at my university, but after all it
doesn't seem to me this driver is really urgent for Allegro. 

-- 
Angelo Mottola
a.mottola@xxxxxxxxxx

Attachment: dgaaccel.zip
Description: Zip archive



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/