diff options
author | Daniel Borca <[email protected]> | 2004-04-02 06:42:04 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-04-02 06:42:04 +0000 |
commit | 77865f81c9ce422b6f23bb105c632c2c6fb9bd67 (patch) | |
tree | 9576829203908ff8aee9f5d48ba70fda63b0de62 /src/mesa/tnl/t_save_api.c | |
parent | 8b0afe0a67ee348bd0d71cc52d980e570f6daa2c (diff) |
added codegen'ed choosers
Diffstat (limited to 'src/mesa/tnl/t_save_api.c')
-rw-r--r-- | src/mesa/tnl/t_save_api.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_save_api.c b/src/mesa/tnl/t_save_api.c index db338bbef6c..18fa46951d0 100644 --- a/src/mesa/tnl/t_save_api.c +++ b/src/mesa/tnl/t_save_api.c @@ -712,6 +712,15 @@ do { \ #define DISPATCH_ATTR1F( ATTR, S ) DISPATCH_ATTRFV( ATTR, 1, &(S) ) +#ifdef USE_X86_ASM +/* Naughty cheat: + */ +#define DISPATCH_ATTR2F( ATTR, S,T ) DISPATCH_ATTRFV( ATTR, 2, &(S) ) +#define DISPATCH_ATTR3F( ATTR, S,T,R ) DISPATCH_ATTRFV( ATTR, 3, &(S) ) +#define DISPATCH_ATTR4F( ATTR, S,T,R,Q ) DISPATCH_ATTRFV( ATTR, 4, &(S) ) +#else +/* Safe: + */ #define DISPATCH_ATTR2F( ATTR, S,T ) \ do { \ GLfloat v[2]; \ @@ -730,6 +739,7 @@ do { \ v[0] = S; v[1] = T; v[2] = R; v[3] = Q; \ DISPATCH_ATTR4FV( ATTR, v ); \ } while (0) +#endif static void enum_error( void ) |