From b980b2eeb62dc48101a7481d02d196c80b9da397 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 8 Jan 2001 04:09:41 +0000 Subject: Add a 'RenderPrimitive' callback to t_vb_render.c. Helps out drivers that used to require a 'ReducedPrimitiveChange' callback. Various compilation fixes for XFree86. Reverted to the older version of glcore.h used internally in XFree86, and moved it to 'Mesa/include/GL/internal/glcore.h', for compatibility with XFree86. --- src/mesa/main/dispatch.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/mesa/main/dispatch.c') diff --git a/src/mesa/main/dispatch.c b/src/mesa/main/dispatch.c index e5de63c0ec..3c19e562e5 100644 --- a/src/mesa/main/dispatch.c +++ b/src/mesa/main/dispatch.c @@ -1,4 +1,4 @@ -/* $Id: dispatch.c,v 1.18 2001/01/02 10:07:34 joukj Exp $ */ +/* $Id: dispatch.c,v 1.19 2001/01/08 04:09:41 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -98,8 +98,6 @@ trace(void) #else -#ifdef THREADS - #define DISPATCH(FUNC, ARGS, MESSAGE) \ const struct _glapi_table *dispatch; \ dispatch = _glapi_Dispatch ? _glapi_Dispatch : _glapi_get_dispatch();\ @@ -110,19 +108,6 @@ trace(void) dispatch = _glapi_Dispatch ? _glapi_Dispatch : _glapi_get_dispatch();\ return (dispatch->FUNC) ARGS -#else - - -#define DISPATCH(FUNC, ARGS, MESSAGE) \ -__asm__ ("jmp *(%%eax) ;" : : "a" (&(_glapi_Dispatch->FUNC)) ) - -#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \ - const struct _glapi_table *dispatch; \ - dispatch = _glapi_Dispatch;\ - return (dispatch->FUNC) ARGS - -#endif - #endif -- cgit v1.2.3