disabled naughty cheats and protected the choosers behind AllowCodeGen

This commit is contained in:
Daniel Borca
2004-04-02 09:12:42 +00:00
parent 77865f81c9
commit 94922b9d2d
3 changed files with 5 additions and 3 deletions

View File

@@ -712,7 +712,7 @@ do { \
#define DISPATCH_ATTR1F( ATTR, S ) DISPATCH_ATTRFV( ATTR, 1, &(S) ) #define DISPATCH_ATTR1F( ATTR, S ) DISPATCH_ATTRFV( ATTR, 1, &(S) )
#ifdef USE_X86_ASM #if defined(USE_X86_ASM) && 0 /* will break register calling convention */
/* Naughty cheat: /* Naughty cheat:
*/ */
#define DISPATCH_ATTR2F( ATTR, S,T ) DISPATCH_ATTRFV( ATTR, 2, &(S) ) #define DISPATCH_ATTR2F( ATTR, S,T ) DISPATCH_ATTRFV( ATTR, 2, &(S) )

View File

@@ -883,7 +883,9 @@ void _tnl_vtx_init( GLcontext *ctx )
choose[ERROR_ATTRIB][2] = error_attrib; choose[ERROR_ATTRIB][2] = error_attrib;
choose[ERROR_ATTRIB][3] = error_attrib; choose[ERROR_ATTRIB][3] = error_attrib;
if (tnl->AllowCodegen) {
_tnl_x86choosers(choose, do_choose); /* x86 INIT_CHOOSERS */ _tnl_x86choosers(choose, do_choose); /* x86 INIT_CHOOSERS */
}
_tnl_generic_attr_table_init( generic_attr_func ); _tnl_generic_attr_table_init( generic_attr_func );
} }

View File

@@ -151,7 +151,7 @@ do { \
#define DISPATCH_ATTR1F( ATTR, S ) DISPATCH_ATTRFV( ATTR, 1, &(S) ) #define DISPATCH_ATTR1F( ATTR, S ) DISPATCH_ATTRFV( ATTR, 1, &(S) )
#ifdef USE_X86_ASM #if defined(USE_X86_ASM) && 0 /* will break register calling convention */
/* Naughty cheat: /* Naughty cheat:
*/ */
#define DISPATCH_ATTR2F( ATTR, S,T ) DISPATCH_ATTRFV( ATTR, 2, &(S) ) #define DISPATCH_ATTR2F( ATTR, S,T ) DISPATCH_ATTRFV( ATTR, 2, &(S) )