Lines Matching defs:stencil
342 GLubyte *p, *tmpImage, *stencil;
392 stencil = malloc(width * sizeof(GLubyte));
393 if (!stencil) {
399 /* Get stencil values */
401 memcpy(stencil, p, width * sizeof(GLubyte));
405 _swrast_read_stencil_span( ctx, rb, width, srcx, sy, stencil );
408 _mesa_apply_stencil_transfer_ops(ctx, width, stencil);
410 /* Write stencil values */
413 destx, dy, stencil);
416 _swrast_write_stencil_span( ctx, width, destx, dy, stencil );
420 free(stencil);
472 /* can't handle packed depth+stencil here */
478 /* can't handle separate depth/stencil buffers */