[Mesa-dev] X Dri

Russell Shaw rjshaw at netspace.net.au
Mon Nov 8 21:41:00 PST 2010

How should the "format" of a DRI2 buffer be determined?


DRI2ATTACH_FORMAT { attachment: CARD32
             format:     CARD32 }

     The DRI2ATTACH_FORMAT describes an attachment and the associated
     format.  'attachment' describes the attachment point for the buffer,
     'format' describes an opaque, device-dependent format for the buffer.


If it's opaque, how does a user or library know what bytes are red/green/blue
so that you can draw a line in the right colour?

I want to bit-bang pixels in an X app on the local machine, without any
intervening GL drivers.

More information about the mesa-dev mailing list