From c212abf99af494f024b0b981a83350f7ac9821ef Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 30 Jun 2005 16:00:48 +0000 Subject: Replace add_newer_entrypoints (src/mesa/main/context.c) with device-specific code. A new Python script (src/mesa/glapi/extension_helper.py) generates a list of all entry-points for all known extensions. Each driver the selects only the extensions that it needs and enables the via either driInitExtensions or driInitSingleExtension. This code has been compile-tested on a drivers, but has only been run-tested on mga and i915 (on i830 hardware). These changes were discussed at length on the mesa3d-dev mailing list. http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2 --- src/mesa/glapi/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/glapi/Makefile') diff --git a/src/mesa/glapi/Makefile b/src/mesa/glapi/Makefile index d2998d893e..9f95349c9e 100644 --- a/src/mesa/glapi/Makefile +++ b/src/mesa/glapi/Makefile @@ -7,6 +7,7 @@ OUTPUTS = glprocs.h glapitemp.h glapioffsets.h glapitable.h \ ../main/enums.c \ ../x86/glapi_x86.S \ + ../drivers/dri/common/extension_helper.h \ ../../glx/x11/indirect.c \ ../../glx/x11/indirect.h \ ../../glx/x11/indirect_init.c \ @@ -39,6 +40,9 @@ glapitable.h: $(COMMON) gl_table.py ../x86/glapi_x86.S: $(COMMON) gl_x86_asm.py $(PYTHON2) $(PYTHON_FLAGS) gl_x86_asm.py > ../x86/glapi_x86.S +../drivers/dri/common/extension_helper.h: $(COMMON) extension_helper.py + $(PYTHON2) $(PYTHON_FLAGS) extension_helper.py > ../drivers/dri/common/extension_helper.h + ../../glx/x11/indirect.c: $(COMMON_GLX) glX_proto_send.py $(PYTHON2) $(PYTHON_FLAGS) glX_proto_send.py -m proto > ../../glx/x11/indirect.c -- cgit v1.2.3