Lines Matching refs:destMask
230 GLbitfield destMask; in _mesa_DrawBuffer() local
239 destMask = 0x0; in _mesa_DrawBuffer()
244 destMask = draw_buffer_enum_to_bitmask(buffer); in _mesa_DrawBuffer()
245 if (destMask == BAD_MASK) { in _mesa_DrawBuffer()
251 destMask &= supportedMask; in _mesa_DrawBuffer()
252 if (destMask == 0x0) { in _mesa_DrawBuffer()
261 _mesa_drawbuffers(ctx, 1, &buffer, &destMask); in _mesa_DrawBuffer()
287 GLbitfield destMask[MAX_DRAW_BUFFERS]; in _mesa_DrawBuffersARB() local
305 destMask[output] = 0x0; in _mesa_DrawBuffersARB()
308 destMask[output] = draw_buffer_enum_to_bitmask(buffers[output]); in _mesa_DrawBuffersARB()
309 if (destMask[output] == BAD_MASK in _mesa_DrawBuffersARB()
310 || _mesa_bitcount(destMask[output]) > 1) { in _mesa_DrawBuffersARB()
314 destMask[output] &= supportedMask; in _mesa_DrawBuffersARB()
315 if (destMask[output] == 0) { in _mesa_DrawBuffersARB()
320 if (destMask[output] & usedBufferMask) { in _mesa_DrawBuffersARB()
328 usedBufferMask |= destMask[output]; in _mesa_DrawBuffersARB()
333 _mesa_drawbuffers(ctx, n, buffers, destMask); in _mesa_DrawBuffersARB()
385 const GLbitfield *destMask) in _mesa_drawbuffers() argument
391 if (!destMask) { in _mesa_drawbuffers()
400 destMask = mask; in _mesa_drawbuffers()
408 GLuint count = 0, destMask0 = destMask[0]; in _mesa_drawbuffers()
424 if (destMask[buf]) { in _mesa_drawbuffers()
425 GLint bufIndex = ffs(destMask[buf]) - 1; in _mesa_drawbuffers()
427 ASSERT(_mesa_bitcount(destMask[buf]) == 1); in _mesa_drawbuffers()