Lines Matching refs:destMask
288 GLbitfield destMask;
297 destMask = 0x0;
302 destMask = draw_buffer_enum_to_bitmask(ctx, buffer);
303 if (!no_error && destMask == BAD_MASK) {
309 destMask &= supportedMask;
310 if (!no_error && destMask == 0x0) {
320 _mesa_drawbuffers(ctx, fb, 1, &buffer16, &destMask);
433 GLbitfield destMask[MAX_DRAW_BUFFERS];
514 destMask[output] = draw_buffer_enum_to_bitmask(ctx, buffers[output]);
521 if (destMask[output] == BAD_MASK) {
546 destMask[output] = 0x0;
575 destMask[output] &= supportedMask;
577 if (destMask[output] == 0) {
604 if (destMask[output] & usedBufferMask) {
613 usedBufferMask |= destMask[output];
622 _mesa_drawbuffers(ctx, fb, n, buffers16, destMask);
753 * \param destMask array[n] of BUFFER_BIT_* bitmasks which correspond to the
760 const GLbitfield *destMask)
765 if (!destMask) {
766 /* compute destMask values now */
774 destMask = mask;
778 * destMask[0] may have up to four bits set
780 * Otherwise, destMask[x] can only have one bit set.
782 if (n > 0 && util_bitcount(destMask[0]) > 1) {
783 GLuint count = 0, destMask0 = destMask[0];
798 if (destMask[buf]) {
799 gl_buffer_index bufIndex = ffs(destMask[buf]) - 1;
800 /* only one bit should be set in the destMask[buf] field */
801 assert(util_bitcount(destMask[buf]) == 1);