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

Eric Anholt <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Martin Robinson <[email protected]> writes:

> From a7d684e6fe4bbeea2262276aaa57bb2a47c401df Mon Sep 17 00:00:00 2001
> From: Martin Robinson <[email protected]>
> 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.

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlDFRdkACgkQHUdvYGzw6vde7QCeNqZeOs69QqlM9hNlUDNUcC++
x2kAnim5tR34PIOk7FgHRMRzsv/m5IEh
=YhK3
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.