Lines Matching refs:buf2
498 GLubyte *buf2; in _mesa_dump_depth_buffer() local
502 buf2 = (GLubyte *) malloc(w * h * 3); /* 3 bpp */ in _mesa_dump_depth_buffer()
512 buf2[i*3+0] = (buf[i] >> 24) & 0xff; in _mesa_dump_depth_buffer()
513 buf2[i*3+1] = (buf[i] >> 16) & 0xff; in _mesa_dump_depth_buffer()
514 buf2[i*3+2] = (buf[i] >> 8) & 0xff; in _mesa_dump_depth_buffer()
518 write_ppm(filename, buf2, w, h, 3, 0, 1, 2, GL_TRUE); in _mesa_dump_depth_buffer()
523 free(buf2); in _mesa_dump_depth_buffer()
534 GLubyte *buf2; in _mesa_dump_stencil_buffer() local
538 buf2 = (GLubyte *) malloc(w * h * 3); /* 3 bpp */ in _mesa_dump_stencil_buffer()
547 buf2[i*3+0] = buf[i]; in _mesa_dump_stencil_buffer()
548 buf2[i*3+1] = (buf[i] & 127) * 2; in _mesa_dump_stencil_buffer()
549 buf2[i*3+2] = (buf[i] - 128) * 2; in _mesa_dump_stencil_buffer()
553 write_ppm(filename, buf2, w, h, 3, 0, 1, 2, GL_TRUE); in _mesa_dump_stencil_buffer()
558 free(buf2); in _mesa_dump_stencil_buffer()