From 775355a88a0927e2e3a855036c26950397a61d7b Mon Sep 17 00:00:00 2001 From: davem69 Date: Tue, 5 Jun 2001 23:54:00 +0000 Subject: Sparc optimized GLAPI dispatch table. --- src/mesa/main/context.c | 8 +++++++- src/mesa/main/dispatch.c | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index ee6953ded8..49146ce079 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1,4 +1,4 @@ -/* $Id: context.c,v 1.140 2001/06/05 03:58:20 davem69 Exp $ */ +/* $Id: context.c,v 1.141 2001/06/05 23:54:00 davem69 Exp $ */ /* * Mesa 3-D graphics library @@ -66,6 +66,9 @@ #include "Trace/tr_wrapper.h" #endif +#ifdef USE_SPARC_ASM +#include "SPARC/sparc.h" +#endif #ifndef MESA_VERBOSE int MESA_VERBOSE = 0 @@ -453,6 +456,9 @@ one_time_init( void ) _math_init(); _mesa_init_math(); +#ifdef USE_SPARC_ASM + _mesa_init_sparc_glapi_relocs(); +#endif if (getenv("MESA_DEBUG")) { _glapi_noop_enable_warnings(GL_TRUE); } diff --git a/src/mesa/main/dispatch.c b/src/mesa/main/dispatch.c index cc14c4b498..078f7bc73f 100644 --- a/src/mesa/main/dispatch.c +++ b/src/mesa/main/dispatch.c @@ -1,4 +1,4 @@ -/* $Id: dispatch.c,v 1.22 2001/03/28 17:20:20 brianp Exp $ */ +/* $Id: dispatch.c,v 1.23 2001/06/05 23:54:00 davem69 Exp $ */ /* * Mesa 3-D graphics library @@ -48,7 +48,7 @@ #include "glthread.h" #endif -#if !defined(USE_X86_ASM) +#if !(defined(USE_X86_ASM) || defined(USE_SPARC_ASM)) #define KEYWORD1 #define KEYWORD2 GLAPIENTRY -- cgit v1.2.3