[Mesa-dev] [PATCH 0/10] i965: Implement hiz and separate stencil for window framebuffer

Eric Anholt eric at anholt.net
Sun Jun 5 21:03:42 PDT 2011


On Sun, 05 Jun 2011 10:44:17 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> I have a naive question: why are we allocating stencil/depth/aux buffers
> through X/DRI2?
> 
> I can understand for the sake of interoperability why the color buffer
> attachments are negotiated with X, but I can't see any reason why X
> wants to know about the others.
> -Chris

From the GLX 1.4 specification:

         Ancillary buffers are associated with a GLXDrawable, not with a
         rendering context. If several rendering contexts are all
         writing to the same window, they will share those buffers.

This is why so much of GLX is so painful -- even across address spaces,
drawables have to share buffers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110605/ea1d1270/attachment-0001.pgp>


More information about the mesa-dev mailing list