Lines Matching defs:mode
440 * Return true if \p mode is a legal blending equation, excluding
444 legal_simple_blend_equation(const struct gl_context *ctx, GLenum mode)
446 switch (mode) {
459 advanced_blend_mode_from_gl_enum(GLenum mode)
461 switch (mode) {
498 * If \p mode is one of the advanced blending equations defined by
504 advanced_blend_mode(const struct gl_context *ctx, GLenum mode)
507 advanced_blend_mode_from_gl_enum(mode) : BLEND_NONE;
522 _mesa_BlendEquation( GLenum mode )
528 enum gl_advanced_blend_mode advanced_mode = advanced_blend_mode(ctx, mode);
532 _mesa_enum_to_string(mode));
537 if (ctx->Color.Blend[buf].EquationRGB != mode ||
538 ctx->Color.Blend[buf].EquationA != mode) {
546 if (ctx->Color.Blend[0].EquationRGB != mode ||
547 ctx->Color.Blend[0].EquationA != mode) {
556 if (!legal_simple_blend_equation(ctx, mode) && !advanced_mode) {
565 ctx->Color.Blend[buf].EquationRGB = mode;
566 ctx->Color.Blend[buf].EquationA = mode;
577 blend_equationi(struct gl_context *ctx, GLuint buf, GLenum mode,
580 if (ctx->Color.Blend[buf].EquationRGB == mode &&
581 ctx->Color.Blend[buf].EquationA == mode)
586 ctx->Color.Blend[buf].EquationRGB = mode;
587 ctx->Color.Blend[buf].EquationA = mode;
596 _mesa_BlendEquationiARB_no_error(GLuint buf, GLenum mode)
600 enum gl_advanced_blend_mode advanced_mode = advanced_blend_mode(ctx, mode);
601 blend_equationi(ctx, buf, mode, advanced_mode);
606 _mesa_BlendEquationiARB(GLuint buf, GLenum mode)
609 enum gl_advanced_blend_mode advanced_mode = advanced_blend_mode(ctx, mode);
613 buf, _mesa_enum_to_string(mode));
621 if (!legal_simple_blend_equation(ctx, mode) && !advanced_mode) {
626 blend_equationi(ctx, buf, mode, advanced_mode);