From a657c1aee85b7a2466d8608d8f3d44ebd015e476 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 7 Apr 2005 23:58:51 +0000 Subject: Use the same dispatch.c source file for "normal" Mesa builds and DRI libGL builds. --- src/mesa/main/dispatch.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/main/dispatch.c b/src/mesa/main/dispatch.c index 946f39d1f9..6040c38ecf 100644 --- a/src/mesa/main/dispatch.c +++ b/src/mesa/main/dispatch.c @@ -23,16 +23,21 @@ */ -/* - * This file generates all the gl* function entrypoints. - * But if we're using X86-optimized dispatch (X86/glapi_x86.S) then - * we don't use this code. +/** + * \file dispatch.c + * + * This file generates all the gl* function entrypoints. This code is not + * used if optimized assembly stubs are available (e.g., using x86/glapi_x86.S + * on IA32 or sparc/glapi_sparc.S on SPARC). * - * NOTE: This file should _not_ be used when compiling Mesa for a DRI- - * based device driver. + * \note + * This file is also used to build the client-side libGL that loads DRI-based + * device drivers. At build-time it is symlinked to src/glx/x11. * + * \author Brian Paul */ +#ifndef GLX_USE_APPLEGL #include "glheader.h" #include "glapi.h" @@ -84,5 +89,6 @@ #include "glapitemp.h" - #endif /* USE_X86_ASM */ + +#endif /* !GLX_USE_APPLEGL */ -- cgit v1.2.3