Re: [patch] gl/msaa: release msaa_depth_stencil buffer under GLESv2
"Henry (Yu) Song - SISA" <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <3955FA337689574EB32F94B12A7E6E9E246FDBE4@sisaex01sj> |
Hi, Andrei Thanks for patch. The msaa compositor in cairo upstream is not complete/optimized, we will upstream our msaa compositor (http://code.google.com/g/cairogles, checkout release-1.12.4 branch which is synched with cairo 1.12.4) once we have our urgent work done. In fact, we have changed the stencil buffer design such that it uses shared stencil buffer instead of each surface has its own dedicated stencil buffer to reduce memory consumption. Please use our cairo gl/msaa backend for the moment until we completely upstream our code. it supports both GL_EXT_multisampled_render_to_texture and GL_IMG_multisampled_render_to_texture. Henry ________________________________________ From: [email protected] [[email protected]] on behalf of Andrei Volykhin [[email protected]] Sent: Thursday, October 18, 2012 5:07 AM To: [email protected] Subject: [cairo] [patch] gl/msaa: release msaa_depth_stencil buffer under GLESv2 diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c index c0ee79f..5c2a597 100644 --- a/src/cairo-gl-surface.c +++ b/src/cairo-gl-surface.c @@ -973,9 +973,9 @@ _cairo_gl_surface_finish (void *abstract_surface) if (surface->owns_tex) glDeleteTextures (1, &surface->tex); -#if CAIRO_HAS_GL_SURFACE if (surface->msaa_depth_stencil) ctx->dispatch.DeleteRenderbuffers (1, &surface->msaa_depth_stencil); +#if CAIRO_HAS_GL_SURFACE if (surface->msaa_fb) ctx->dispatch.DeleteFramebuffers (1, &surface->msaa_fb); if (surface->msaa_rb) If cairo will be configured with next options: ./confugire --enable-gl=no --enable-glesv2=yes --enable-egl=yes, and we'll use gl/msaa compositor (export CAIRO_GL_COMPOSITOR=msaa) and GL_RENDERER support next extension - "GL_IMG_multisampled_render_to_texture" or "GL_EXT_multisampled_render_to_texture", we'll get memory leaks on embedded devices (GLESv2). -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo