gl_marshal.py: rework how the marshal dispatch table is initialized
authorMarek Olšák <marek.olsak@amd.com>
Thu, 11 Aug 2022 13:10:15 +0000 (09:10 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Oct 2022 04:23:05 +0000 (04:23 +0000)
commit67c7260571b0b6dc8f6f6b4f659333275383e969
treee5a5376db0030c96fceaaaf5e11bcb31af81ff36
parent5e66e269981202120c104a1cd33c3532ab9fa0e8
gl_marshal.py: rework how the marshal dispatch table is initialized

Instead of setting all function pointers in marshal_generated0.c,
set the function pointers in the file that contains the functions,
and remove all the forward declarations of marshal functions
in marshal_generated.h.

Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18199>
src/mapi/glapi/gen/gl_marshal.py
src/mapi/glapi/gen/gl_marshal_h.py
src/mapi/glapi/gen/marshal_XML.py
src/mesa/main/glthread.c
src/mesa/main/glthread.h
src/mesa/main/glthread_marshal.h