[Mesa-dev] [PATCH 4/9] dispatch: Include GLES1-only functions in dispatch table.

Chad Versace chad.versace at linux.intel.com
Wed Oct 31 15:21:44 PDT 2012


Tapani, see the bottom of the message.

On 10/30/2012 10:42 AM, Paul Berry wrote:
> Previously dispatch table-related code was generated from gl_API.xml,
> so it did not include slots for GLES1-only functions (such as those
> taking fixed-point arguments).
> 
> This patch generates dispatch table-related code from
> gl_and_es_API.xml, so that GLES1-only functions are included.  This
> paves the way for future patches that will unify the GLES1 dispatch
> table with the dispatch tables for the other APIs.
> 
> The following generated files are affected:
> - glapi_x86.S
> - glapi_x86-64.S
> - glapi_sparc.S
> - glprocs.h
> - glapitemp.h
> - glapitable.h
> - glapi_gentable.c
> - dispatch.h
> - remap_helper.h
> 
> Since this change affects makefiles, a full rebuild is required.
> ---
>  src/mapi/glapi/SConscript      |  6 +++---
>  src/mapi/glapi/gen/Makefile.am | 18 +++++++++---------
>  src/mapi/glapi/gen/SConscript  | 10 +++++-----
>  3 files changed, 17 insertions(+), 17 deletions(-)
> 

> diff --git a/src/mapi/glapi/gen/Makefile.am b/src/mapi/glapi/gen/Makefile.am
> index 40aaf51..24bdbaf 100644
> --- a/src/mapi/glapi/gen/Makefile.am
> +++ b/src/mapi/glapi/gen/Makefile.am
> @@ -187,27 +187,27 @@ $(MESA_GLAPI_DIR)/glapi_mapi_tmp.h: $(MESA_MAPI_DIR)/mapi_abi.py $(COMMON_ES)
>  		--printer glapi --mode lib $(srcdir)/gl_and_es_API.xml > $@
>  

I see a dependency bug. The rules below depend on list COMMON, which does not
contain gl_and_es_API.xml. I think the best way to fix this is to remove the
list COMMON_ES and fold its contents into COMMON.

>  $(MESA_GLAPI_DIR)/glprocs.h: gl_procs.py $(COMMON)
> -	$(PYTHON_GEN) $< -f $(srcdir)/gl_API.xml > $@
> +	$(PYTHON_GEN) $< -f $(srcdir)/gl_and_es_API.xml > $@
>  
>  $(MESA_GLAPI_DIR)/glapitemp.h: gl_apitemp.py $(COMMON)
> -	$(PYTHON_GEN) $< -f $(srcdir)/gl_API.xml > $@
> +	$(PYTHON_GEN) $< -f $(srcdir)/gl_and_es_API.xml > $@
>  
>  $(MESA_GLAPI_DIR)/glapitable.h: gl_table.py $(COMMON)
> -	$(PYTHON_GEN) $< -f $(srcdir)/gl_API.xml > $@
> +	$(PYTHON_GEN) $< -f $(srcdir)/gl_and_es_API.xml > $@
>  
>  $(MESA_GLAPI_DIR)/glapi_gentable.c: gl_gentable.py $(COMMON)
> -	$(PYTHON_GEN) $< -f $(srcdir)/gl_API.xml > $@
> +	$(PYTHON_GEN) $< -f $(srcdir)/gl_and_es_API.xml > $@
>  


This patch doesn't touch the Android makefiles, and I think that's ok. Still,
I want to verify with Tapani that this won't break the Android build before
comitting.



More information about the mesa-dev mailing list