Functions/Entrypoints to be supported by XServer 2D driver.

Alex Deucher alexdeucher at gmail.com
Thu Jan 27 23:20:22 PST 2011


On Fri, Jan 28, 2011 at 12:45 AM, kumar vemuri <kumar210in at gmail.com> wrote:
> Hi,
>
>     Am new to linux graphics driver dev and is my spare time project.
> Can someone answer some fundamental questions.
>
> Its regarding the 2D device dependent driver <device_drv.so>.
>
> a. My understanding is that this driver is needed for GPU accelerated 2D
> rendering also. Hence its needed even if DRI is not enabled for 3D. Its
> basically the 2D driver for the GPU. Is my understanding correct?
>

yes.

> b. What are the functions that need to be implemented by this driver? Is
> there a header file that is exported by the device independent part of
> Xserver which lists all the functions that <device_drv.so> needs to
> support?

As Alan suggested, take a look at the design doc:
http://www.x.org/releases/X11R7.6/doc/xorg-server/DESIGN.html
It's a bit outdated, but should give you a general idea.

>
> c. Any suggestions on how to start writing this 2D driver will certainly
> be helpful.
>

look at an existing driver for reference.  See xorg/driver/xf86-video-* on
http://cgit.freedesktop.org/

Alex

> Thanks
> K
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>


More information about the xorg-devel mailing list