diff --git a/src/mapi/glapi/gen-es/Makefile b/src/mapi/glapi/gen-es/Makefile index bda8e9ef729..709cfa8f94f 100644 --- a/src/mapi/glapi/gen-es/Makefile +++ b/src/mapi/glapi/gen-es/Makefile @@ -3,7 +3,6 @@ GLAPI = ../gen include $(TOP)/configs/current OUTPUTS := \ - glapi/glapidispatch.h \ glapi/glapioffsets.h \ glapi/glapitable.h \ glapi/glapitemp.h \ @@ -11,6 +10,7 @@ OUTPUTS := \ glapi/glapi_sparc.S \ glapi/glapi_x86-64.S \ glapi/glapi_x86.S \ + main/glapidispatch.h \ main/remap_helper.h COMMON = gl_XML.py glX_XML.py license.py typeexpr.py diff --git a/src/mapi/glapi/gen/Makefile b/src/mapi/glapi/gen/Makefile index 7ecd00dfde8..e8da34de42d 100644 --- a/src/mapi/glapi/gen/Makefile +++ b/src/mapi/glapi/gen/Makefile @@ -15,8 +15,7 @@ MESA_GLAPI_OUTPUTS = \ $(MESA_GLAPI_DIR)/glprocs.h \ $(MESA_GLAPI_DIR)/glapitemp.h \ $(MESA_GLAPI_DIR)/glapioffsets.h \ - $(MESA_GLAPI_DIR)/glapitable.h \ - $(MESA_GLAPI_DIR)/glapidispatch.h + $(MESA_GLAPI_DIR)/glapitable.h MESA_GLAPI_ASM_OUTPUTS = \ $(MESA_GLAPI_DIR)/glapi_x86.S \ @@ -27,6 +26,7 @@ MESA_OUTPUTS = \ $(MESA_GLAPI_OUTPUTS) \ $(MESA_GLAPI_ASM_OUTPUTS) \ $(MESA_DIR)/main/enums.c \ + $(MESA_DIR)/main/glapidispatch.h \ $(MESA_DIR)/main/remap_helper.h \ $(MESA_GLX_DIR)/indirect.c \ $(MESA_GLX_DIR)/indirect.h \ @@ -138,9 +138,6 @@ $(MESA_GLAPI_DIR)/glapioffsets.h: gl_offsets.py $(COMMON) $(MESA_GLAPI_DIR)/glapitable.h: gl_table.py $(COMMON) $(PYTHON2) $(PYTHON_FLAGS) $< > $@ -$(MESA_GLAPI_DIR)/glapidispatch.h: gl_table.py $(COMMON) - $(PYTHON2) $(PYTHON_FLAGS) $< -m remap_table > $@ - ###################################################################### $(MESA_GLAPI_DIR)/glapi_x86.S: gl_x86_asm.py $(COMMON) @@ -159,6 +156,9 @@ $(MESA_DIR)/main/enums.c: gl_enums.py $(COMMON) $(ES_API) -f $(MESA_GLAPI_DIR)/gen-es/es1_API.xml \ -f $(MESA_GLAPI_DIR)/gen-es/es2_API.xml > $@ +$(MESA_DIR)/main/glapidispatch.h: gl_table.py $(COMMON) + $(PYTHON2) $(PYTHON_FLAGS) $< -m remap_table > $@ + $(MESA_DIR)/main/remap_helper.h: remap_helper.py $(COMMON) $(PYTHON2) $(PYTHON_FLAGS) $< > $@ diff --git a/src/mesa/main/dispatch.h b/src/mesa/main/dispatch.h index 27f80a50629..e39d3e27151 100644 --- a/src/mesa/main/dispatch.h +++ b/src/mesa/main/dispatch.h @@ -32,6 +32,6 @@ #include "glapi/glapitable.h" #include "glapi/glapioffsets.h" -#include "glapi/glapidispatch.h" +#include "main/glapidispatch.h" #endif /* _DISPATCH_H */ diff --git a/src/mesa/main/es_generator.py b/src/mesa/main/es_generator.py index ecb34bb5cdf..b787f1bbf1a 100644 --- a/src/mesa/main/es_generator.py +++ b/src/mesa/main/es_generator.py @@ -221,7 +221,7 @@ extern void _mesa_error(void *ctx, GLenum error, const char *fmtString, ... ); #endif #include "%sapi/glapi/glapitable.h" #include "%sapi/glapi/glapioffsets.h" -#include "%sapi/glapi/glapidispatch.h" +#include "%sapi/main/glapidispatch.h" #if FEATURE_remap_table diff --git a/src/mapi/glapi/glapidispatch.h b/src/mesa/main/glapidispatch.h similarity index 100% rename from src/mapi/glapi/glapidispatch.h rename to src/mesa/main/glapidispatch.h