[Mesa-dev] [PATCH 08/22] swrast: rewrite _swrast_read_stencil_span()

Eric Anholt eric at anholt.net
Thu Dec 22 09:37:24 PST 2011


On Thu, 22 Dec 2011 09:31:59 -0700, Brian Paul <brian.e.paul at gmail.com> wrote:
> On Wed, Dec 21, 2011 at 1:01 PM, Eric Anholt <eric at anholt.net> wrote:
> > On Sun, 18 Dec 2011 20:08:13 -0700, Brian Paul <brianp at vmware.com> wrote:
> >>     if ((stencilMask & stencilMax) != stencilMax) {
> >>        /* need to apply writemask */
> >>        GLubyte destVals[MAX_WIDTH], newVals[MAX_WIDTH];
> >>        GLint i;
> >> -      rb->GetRow(ctx, rb, n, x, y, destVals);
> >> +
> >> +      _mesa_unpack_ubyte_stencil_row(rb->Format, n, stencilBuf, destVals);
> >>        for (i = 0; i < n; i++) {
> >>           newVals[i]
> >>              = (stencil[i] & stencilMask) | (destVals[i] & ~stencilMask);
> >>        }
> >> -      rb->PutRow(ctx, rb, n, x, y, newVals, NULL);
> >> +      _mesa_pack_ubyte_stencil_row(rb->Format, n, destVals, stencilBuf);
> >
> > s/destVals/newVals/ ?
> 
> Will do.  R-b?

Yeah.
-------------- 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/20111222/d08775f5/attachment.pgp>


More information about the mesa-dev mailing list