glthread: assume all parameters are fixed if marshal_sync is present
authorMarek Olšák <marek.olsak@amd.com>
Fri, 12 Feb 2021 01:40:05 +0000 (20:40 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 17 Feb 2021 10:47:21 +0000 (05:47 -0500)
commit2804d489e37ccb69c0f41a8eb016863e9b419782
tree9433961ed2df1ead2287c5bfeab21c2040aa814b
parent8288882965bf1c5f0ca5d9f29c1b759bee2bc718
glthread: assume all parameters are fixed if marshal_sync is present

We want glthread to ignore variable-sized parameters if the only thing
we want is to pass the pointer parameter as-is, e.g. when a PBO is bound.
Making it conditional on marshal_sync is kinda hacky, but it's the easiest
path towards handling PBOs, which will use marshal_sync to check whether
a PBO is bound.

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9029>
src/mapi/glapi/gen/gl_marshal.py