diff options
author | Jose Fonseca <[email protected]> | 2002-04-19 10:33:34 +0000 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2002-04-19 10:33:34 +0000 |
commit | 533e88824af9f60a926e7b70ddd40ad1386be686 (patch) | |
tree | 8a95b7de00287875beeb142b2ad8d201da316575 /src/mesa/swrast/s_blend.c | |
parent | 68c48df2bf8dd57ce96db430fff1b69f40a793ce (diff) |
MMX modulate belding function added.
Factorization of more common MMX code.
Diffstat (limited to 'src/mesa/swrast/s_blend.c')
-rw-r--r-- | src/mesa/swrast/s_blend.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_blend.c b/src/mesa/swrast/s_blend.c index 845709a1119..9a1f6472928 100644 --- a/src/mesa/swrast/s_blend.c +++ b/src/mesa/swrast/s_blend.c @@ -1,4 +1,4 @@ -/* $Id: s_blend.c,v 1.19 2002/04/10 16:32:32 brianp Exp $ */ +/* $Id: s_blend.c,v 1.20 2002/04/19 10:33:34 jrfonseca Exp $ */ /* * Mesa 3-D graphics library @@ -663,7 +663,13 @@ void _swrast_choose_blend_func( GLcontext *ctx ) || ((eq==GL_FUNC_ADD_EXT || eq==GL_FUNC_SUBTRACT_EXT) && (srcRGB==GL_DST_COLOR && dstRGB==GL_ZERO))) { - SWRAST_CONTEXT(ctx)->BlendFunc = blend_modulate; +#if defined(USE_MMX_ASM) + if ( cpu_has_mmx ) { + SWRAST_CONTEXT(ctx)->BlendFunc = _mesa_mmx_blend_modulate; + } + else +#endif + SWRAST_CONTEXT(ctx)->BlendFunc = blend_modulate; } else if (eq==GL_MIN_EXT) { SWRAST_CONTEXT(ctx)->BlendFunc = blend_min; |