[cairo] [PATCH] gl/msaa: Share the depth/stencil buffer among all surfaces

Eric Anholt eric at anholt.net
Sun Dec 9 18:15:53 PST 2012

Martin Robinson <mrobinson at igalia.com> writes:

> From a7d684e6fe4bbeea2262276aaa57bb2a47c401df Mon Sep 17 00:00:00 2001
> From: Martin Robinson <mrobinson at igalia.com>
> Date: Mon, 5 Mar 2012 23:11:19 -0800
> Subject: [PATCH] gl/msaa: Share the depth/stencil buffer among all surfaces
> Instead of allocating a depth/stencil buffer for all surfaces, share a
> common buffer that's the size of the largest surface. This reduces
> video memory usage when there are many GL surfaces.

This should fail on a pre-ARB_framebuffer desktop GL or a GLES2 GL,
since they are supposed to throw FRAMEBUFFER_INCOMPLETE_DIMENSIONS
when the sizes of FB attachments don't match. (section 4.4.5 of the
GLES2 spec)

Mesa's desktop GL drivers always expose ARB_fbo if they exposes FBO at
all, I think.  It seems quite likely to be a good idea for desktop,
though the cost of computing FBO completeness on changes like this is
way higher than we'd like it to be right now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121209/6a9924e9/attachment.pgp>

More information about the cairo mailing list