On Tue, 4 Sep 2001, Michel Lespinasse wrote:

> Hi,
> 
> I'm asking about a clarification to the DGA2 API.
> 
> The function XDGASetMode returns a pointer to an XDGADevice, where the
> "data" field should be set to either NULL or a pointer to the DGA
> framebuffer.
> 
> Am I correct to assume that if xdgadev->data is not NULL, it will
> point to the first pixel of the screen ? i.e. there will be no offset
> between the start of the framebuffer memory and the first pixel ?

    In theory.  Doesn't mean there aren't bugs though.  And
actually, looking at the code, it's probably broken if the 
offset doesn't lie on a page boundary.  The library appears
to map (base+offset) rather than mapping base and returning
(virtual(base) + offset) like it should.


                        Mark.


_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to