diff options
author | Jose Fonseca <[email protected]> | 2002-04-19 10:53:08 +0000 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2002-04-19 10:53:08 +0000 |
commit | 0c527ab0546eb1de9ee10cc31bc386a40e6b3f98 (patch) | |
tree | 9be621b660248843329e9d30740ee41147d7b8d6 /src/mesa/swrast/s_blend.c | |
parent | 533e88824af9f60a926e7b70ddd40ad1386be686 (diff) |
MMX add blending function added.
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 9a1f6472928..0d75e2a8cfd 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.20 2002/04/19 10:33:34 jrfonseca Exp $ */ +/* $Id: s_blend.c,v 1.21 2002/04/19 10:53:08 jrfonseca Exp $ */ /* * Mesa 3-D graphics library @@ -656,7 +656,13 @@ void _swrast_choose_blend_func( GLcontext *ctx ) SWRAST_CONTEXT(ctx)->BlendFunc = blend_transparency; } else if (eq==GL_FUNC_ADD_EXT && srcRGB==GL_ONE && dstRGB==GL_ONE) { - SWRAST_CONTEXT(ctx)->BlendFunc = blend_add; +#if defined(USE_MMX_ASM) + if ( cpu_has_mmx ) { + SWRAST_CONTEXT(ctx)->BlendFunc = _mesa_mmx_blend_add; + } + else +#endif + SWRAST_CONTEXT(ctx)->BlendFunc = blend_add; } else if (((eq==GL_FUNC_ADD_EXT || eq==GL_FUNC_REVERSE_SUBTRACT_EXT) && (srcRGB==GL_ZERO && dstRGB==GL_SRC_COLOR)) |