Lines Matching refs:mask
151 _mesa_Clear( GLbitfield mask ) in _mesa_Clear() argument
159 _mesa_debug(ctx, "glClear 0x%x\n", mask); in _mesa_Clear()
161 if (mask & ~(GL_COLOR_BUFFER_BIT | in _mesa_Clear()
166 _mesa_error( ctx, GL_INVALID_VALUE, "glClear(0x%x)", mask); in _mesa_Clear()
173 if ((mask & GL_ACCUM_BUFFER_BIT) != 0 in _mesa_Clear()
202 mask &= ~GL_DEPTH_BUFFER_BIT; in _mesa_Clear()
210 if (mask & GL_COLOR_BUFFER_BIT) { in _mesa_Clear()
217 if ((mask & GL_DEPTH_BUFFER_BIT) in _mesa_Clear()
222 if ((mask & GL_STENCIL_BUFFER_BIT) in _mesa_Clear()
227 if ((mask & GL_ACCUM_BUFFER_BIT) in _mesa_Clear()
251 GLbitfield mask = 0x0; in make_color_buffer_mask() local
256 mask |= BUFFER_BIT_FRONT_LEFT; in make_color_buffer_mask()
258 mask |= BUFFER_BIT_FRONT_RIGHT; in make_color_buffer_mask()
262 mask |= BUFFER_BIT_BACK_LEFT; in make_color_buffer_mask()
264 mask |= BUFFER_BIT_BACK_RIGHT; in make_color_buffer_mask()
268 mask |= BUFFER_BIT_FRONT_LEFT; in make_color_buffer_mask()
270 mask |= BUFFER_BIT_BACK_LEFT; in make_color_buffer_mask()
274 mask |= BUFFER_BIT_FRONT_RIGHT; in make_color_buffer_mask()
276 mask |= BUFFER_BIT_BACK_RIGHT; in make_color_buffer_mask()
280 mask |= BUFFER_BIT_FRONT_LEFT; in make_color_buffer_mask()
282 mask |= BUFFER_BIT_BACK_LEFT; in make_color_buffer_mask()
284 mask |= BUFFER_BIT_FRONT_RIGHT; in make_color_buffer_mask()
286 mask |= BUFFER_BIT_BACK_RIGHT; in make_color_buffer_mask()
290 mask = INVALID_MASK; in make_color_buffer_mask()
293 mask |= (BUFFER_BIT_COLOR0 << drawbuffer); in make_color_buffer_mask()
297 return mask; in make_color_buffer_mask()
346 const GLbitfield mask = make_color_buffer_mask(ctx, drawbuffer); in _mesa_ClearBufferiv() local
347 if (mask == INVALID_MASK) { in _mesa_ClearBufferiv()
352 else if (mask && !ctx->RasterDiscard) { in _mesa_ClearBufferiv()
360 ctx->Driver.Clear(ctx, mask); in _mesa_ClearBufferiv()
412 const GLbitfield mask = make_color_buffer_mask(ctx, drawbuffer); in _mesa_ClearBufferuiv() local
413 if (mask == INVALID_MASK) { in _mesa_ClearBufferuiv()
418 else if (mask && !ctx->RasterDiscard) { in _mesa_ClearBufferuiv()
426 ctx->Driver.Clear(ctx, mask); in _mesa_ClearBufferuiv()
510 const GLbitfield mask = make_color_buffer_mask(ctx, drawbuffer); in _mesa_ClearBufferfv() local
511 if (mask == INVALID_MASK) { in _mesa_ClearBufferfv()
516 else if (mask && !ctx->RasterDiscard) { in _mesa_ClearBufferfv()
524 ctx->Driver.Clear(ctx, mask); in _mesa_ClearBufferfv()
566 GLbitfield mask = 0; in _mesa_ClearBufferfi() local
599 mask |= BUFFER_BIT_DEPTH; in _mesa_ClearBufferfi()
601 mask |= BUFFER_BIT_STENCIL; in _mesa_ClearBufferfi()
603 if (mask) { in _mesa_ClearBufferfi()
613 ctx->Driver.Clear(ctx, mask); in _mesa_ClearBufferfi()