tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Xorg for amiga, need help



Robert Swindells wrote:

>>>>[...] How do I write replacement code for:
>>>>  pScreen->devPrivates[cfb32ScreenPrivateIndex].ptr =
>>>>  pScreen->devPrivate;
>>> [...]
>
> You will end up removing that line, yes.

Ok. After studying a lot of other drivers I tend to agree.


> Maybe take a look at a driver like xf86-video-suncg6 to see how to hook
> acceleration functions into fb.

Thanks. That has been helpful.


> I recognize that you want hardware acceleration, I don't think that
> going through the old driver and getting it to build is the only way
> to go though.

Not the only one, but hopefully the easiest?


> Another way would be to create a new driver for each Amiga specific
> GPU and add Amiga support to existing drivers for GPUs that are used
> elsewhere.

Drivers for the GPUs from S3 and Cirrus already exist, but adapting those
for the Zorro bus and the grf(4) interface might be difficult. It's also
the question if we want to clutter a standard driver with code from a
platform which has only historic relevance.


Now I started to adapt Xamiga's hardware acceleration, and I'm stuck. Many
raster operations use cfbPrivGC from GCPtr. The Xorg structure with the
highest similarity might be FbGCPriv, but it is completely different. The
"rop" and "oneRect" fields from cfbPrivGC no longer exist anywhere in Xorg.

*sigh*

-- 
Frank Wille



Home | Main Index | Thread Index | Old Index