From: Brian Date: Tue, 14 Aug 2007 00:14:54 +0000 (-0600) Subject: map stencil buffer too X-Git-Tag: 062012170305~17580^2~390^2~4333 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd308dfa794a1be5d933a4b89539d53929537f88;p=profile%2Fivi%2Fmesa.git map stencil buffer too --- diff --git a/src/mesa/pipe/softpipe/sp_context.c b/src/mesa/pipe/softpipe/sp_context.c index d67ad2c..34ef00f 100644 --- a/src/mesa/pipe/softpipe/sp_context.c +++ b/src/mesa/pipe/softpipe/sp_context.c @@ -126,6 +126,12 @@ static void map_surfaces(struct softpipe_context *sp) pipe->region_map(pipe, sps->surface.region); } + if (sp->framebuffer.sbuf) { + struct softpipe_surface *sps = softpipe_surface(sp->framebuffer.sbuf); + if (sps->surface.region) + pipe->region_map(pipe, sps->surface.region); + } + /* textures */ for (i = 0; i < PIPE_MAX_SAMPLERS; i++) { struct pipe_mipmap_tree *mt = sp->texture[i]; @@ -155,6 +161,12 @@ static void unmap_surfaces(struct softpipe_context *sp) pipe->region_unmap(pipe, sps->surface.region); } + if (sp->framebuffer.sbuf) { + struct softpipe_surface *sps = softpipe_surface(sp->framebuffer.sbuf); + if (sps->surface.region) + pipe->region_unmap(pipe, sps->surface.region); + } + /* textures */ for (i = 0; i < PIPE_MAX_SAMPLERS; i++) { struct pipe_mipmap_tree *mt = sp->texture[i];