Mesa (master): glapi: Use GLES information from XML rather than gles_api.py .

Paul Berry stereotype441 at kemper.freedesktop.org
Tue Oct 16 19:06:02 UTC 2012


Module: Mesa
Branch: master
Commit: e378cd77bc63ebeaec42030da8f5ceb1d9c4be10
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e378cd77bc63ebeaec42030da8f5ceb1d9c4be10

Author: Paul Berry <stereotype441 at gmail.com>
Date:   Wed Oct 10 16:48:08 2012 -0700

glapi: Use GLES information from XML rather than gles_api.py.

Tested-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mapi/glapi/gen/gl_table.py     |    9 +--------
 src/mapi/glapi/gen/remap_helper.py |    9 +--------
 2 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/src/mapi/glapi/gen/gl_table.py b/src/mapi/glapi/gen/gl_table.py
index 856aedb..382eaaf 100644
--- a/src/mapi/glapi/gen/gl_table.py
+++ b/src/mapi/glapi/gen/gl_table.py
@@ -254,13 +254,6 @@ if __name__ == '__main__':
     api = gl_XML.parse_GL_API( file_name )
 
     if es is not None:
-        import gles_api
-
-        api_map = {
-                'es1': gles_api.es1_api,
-                'es2': gles_api.es2_api,
-        }
-
-        api.filter_functions(api_map[es])
+        api.filter_functions_by_api(es)
 
     printer.Print( api )
diff --git a/src/mapi/glapi/gen/remap_helper.py b/src/mapi/glapi/gen/remap_helper.py
index eae1cf3..e1a13d0 100644
--- a/src/mapi/glapi/gen/remap_helper.py
+++ b/src/mapi/glapi/gen/remap_helper.py
@@ -186,14 +186,7 @@ if __name__ == '__main__':
     api = gl_XML.parse_GL_API( file_name )
 
     if es is not None:
-        import gles_api
-
-        api_map = {
-                'es1': gles_api.es1_api,
-                'es2': gles_api.es2_api,
-        }
-
-        api.filter_functions(api_map[es])
+        api.filter_functions_by_api(es)
 
     printer = PrintGlRemap()
     printer.Print( api )




More information about the mesa-commit mailing list