glapi: generate static offsets from the list of GL functions automatically

Since glapi is part of libgallium.so, the offsets don't have to be immutable
anymore, but they still have to be fixed values within a build because both
gl_XML.py and genCommon.py use them and they should match AFAIK.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33634>
This commit is contained in:
Marek Olšák 2025-01-22 05:11:56 -05:00 committed by Marge Bot
parent e3f9848a5c
commit c0b0ba1b77
2 changed files with 1691 additions and 1688 deletions

View file

@ -661,9 +661,8 @@ class gl_function( gl_item ):
if name in static_data.offsets:
self.offset = static_data.offsets[name]
else:
if self.exec_flavor != "skip":
raise RuntimeError("Entry-point %s is missing offset in static_data.py. Add one at the bottom of the list." % (name))
elif self.exec_flavor != "skip":
raise RuntimeError("Entry-point %s is missing in static_data.py. Add one into all_functions." % (name))
if not self.name:
self.name = true_name

File diff suppressed because it is too large Load diff