Home | History | Annotate | Download | only in main

Lines Matching refs:destMask

230    GLbitfield destMask;
239 destMask = 0x0;
244 destMask = draw_buffer_enum_to_bitmask(buffer);
245 if (destMask == BAD_MASK) {
251 destMask &= supportedMask;
252 if (destMask == 0x0) {
261 _mesa_drawbuffers(ctx, 1, &buffer, &destMask);
287 GLbitfield destMask[MAX_DRAW_BUFFERS];
305 destMask[output] = 0x0;
308 destMask[output] = draw_buffer_enum_to_bitmask(buffers[output]);
309 if (destMask[output] == BAD_MASK
310 || _mesa_bitcount(destMask[output]) > 1) {
314 destMask[output] &= supportedMask;
315 if (destMask[output] == 0) {
320 if (destMask[output] & usedBufferMask) {
328 usedBufferMask |= destMask[output];
333 _mesa_drawbuffers(ctx, n, buffers, destMask);
379 * \param destMask array[n] of BUFFER_BIT_* bitmasks which correspond to the
385 const GLbitfield *destMask)
391 if (!destMask) {
392 /* compute destMask values now */
400 destMask = mask;
404 * If n==1, destMask[0] may have up to four bits set.
405 * Otherwise, destMask[x] can only have one bit set.
408 GLuint count = 0, destMask0 = destMask[0];
424 if (destMask[buf]) {
425 GLint bufIndex = ffs(destMask[buf]) - 1;
426 /* only one bit should be set in the destMask[buf] field */
427 ASSERT(_mesa_bitcount(destMask[buf]) == 1);