Lines Matching refs:destMask
271 GLbitfield destMask; in draw_buffer() local
280 destMask = 0x0; in draw_buffer()
285 destMask = draw_buffer_enum_to_bitmask(ctx, buffer); in draw_buffer()
286 if (destMask == BAD_MASK) { in draw_buffer()
292 destMask &= supportedMask; in draw_buffer()
293 if (destMask == 0x0) { in draw_buffer()
302 _mesa_drawbuffers(ctx, fb, 1, &buffer, &destMask); in draw_buffer()
358 GLbitfield destMask[MAX_DRAW_BUFFERS]; in draw_buffers() local
396 destMask[output] = draw_buffer_enum_to_bitmask(ctx, buffers[output]); in draw_buffers()
402 if (destMask[output] == BAD_MASK) { in draw_buffers()
427 if (_mesa_bitcount(destMask[output]) > 1) { in draw_buffers()
460 destMask[output] = 0x0; in draw_buffers()
489 destMask[output] &= supportedMask; in draw_buffers()
490 if (destMask[output] == 0) { in draw_buffers()
516 if (destMask[output] & usedBufferMask) { in draw_buffers()
524 usedBufferMask |= destMask[output]; in draw_buffers()
529 _mesa_drawbuffers(ctx, fb, n, buffers, destMask); in draw_buffers()
609 GLuint n, const GLenum *buffers, const GLbitfield *destMask) in _mesa_drawbuffers() argument
614 if (!destMask) { in _mesa_drawbuffers()
623 destMask = mask; in _mesa_drawbuffers()
631 if (n > 0 && _mesa_bitcount(destMask[0]) > 1) { in _mesa_drawbuffers()
632 GLuint count = 0, destMask0 = destMask[0]; in _mesa_drawbuffers()
647 if (destMask[buf]) { in _mesa_drawbuffers()
648 GLint bufIndex = ffs(destMask[buf]) - 1; in _mesa_drawbuffers()
650 assert(_mesa_bitcount(destMask[buf]) == 1); in _mesa_drawbuffers()