aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2018-11-15 14:49:32 +0000
committerEmil Velikov <[email protected]>2019-01-24 18:13:25 +0000
commitbabec55f7eb00486bc60b6edd9673599e6579c2c (patch)
treeb0df3d89a61c2e94829d0d1f44ca4bd7a742bf33 /src/mapi
parent5b1bdce15684095702143f656681ceb91c82a48c (diff)
mapi/new: don't print info we don't need for ES1/ES2
There is no need for the noop functions, the public_stubs and public_entries table or table size defines. Remove those. Pretty much all of this is applicable to GLVND, although it requires preparatory work. v2: - python style fixes (Dylan) - use "gldispatch" instead of not "glesv1" "glesv2" - remove the public_entries table/array (Erik) v3: - use if == "gldispatch", instead of "in" (Kyle) Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Erik Faye-Lund <[email protected]> (v2)
Diffstat (limited to 'src/mapi')
-rwxr-xr-xsrc/mapi/new/gen_gldispatch_mapi.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mapi/new/gen_gldispatch_mapi.py b/src/mapi/new/gen_gldispatch_mapi.py
index 959d8798f5c..e9dc6d401e3 100755
--- a/src/mapi/new/gen_gldispatch_mapi.py
+++ b/src/mapi/new/gen_gldispatch_mapi.py
@@ -63,11 +63,13 @@ 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 == "gldispatch":
+ print(generate_table(functions, allFunctions))
+ print(generate_noop_array(functions))
+ print(generate_public_stubs(functions))
print(generate_public_entries(functions))
- print(generate_public_entries_table(functions))
+ if target == "gldispatch":
+ print(generate_public_entries_table(functions))
print(generate_undef_public_entries())
print(generate_stub_asm_gcc(functions))