[Mesa-dev] [PATCH 08/18] mapi/new: don't print info we don't need for ES1/ES2

Emil Velikov emil.l.velikov at gmail.com
Wed Nov 21 12:04:05 UTC 2018


There is no need for the noop function, the public_stubs table or table
size defines. Remove those.

Might what to look and merge this back to GLVND - from a quick look
they don't need them either.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/mapi/new/gen_gldispatch_mapi.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/mapi/new/gen_gldispatch_mapi.py b/src/mapi/new/gen_gldispatch_mapi.py
index be7b7495909..b370559024d 100755
--- a/src/mapi/new/gen_gldispatch_mapi.py
+++ b/src/mapi/new/gen_gldispatch_mapi.py
@@ -63,9 +63,10 @@ typedef void (APIENTRY  *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLe
 """.lstrip("\n"))
 
     print(generate_defines(functions))
-    print(generate_table(functions, allFunctions))
-    print(generate_noop_array(functions))
-    print(generate_public_stubs(functions))
+    if (target not in ("glesv1", "glesv2")):
+        print(generate_table(functions, allFunctions))
+        print(generate_noop_array(functions))
+        print(generate_public_stubs(functions))
     print(generate_public_entries(functions))
     print(generate_stub_asm_gcc(functions))
 
-- 
2.19.1



More information about the mesa-dev mailing list