From: Marek Olšák Date: Thu, 20 Feb 2020 03:15:51 +0000 (-0500) Subject: glthread: add support for glMemoryObjectParameteriv, glSemaphoreParameterui64v X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9eef27920ca7b670225cdc529f200b30140dc39;p=mesa.git glthread: add support for glMemoryObjectParameteriv, glSemaphoreParameterui64v Reviewed-by: Timothy Arceri Part-of: --- diff --git a/src/mapi/glapi/gen/EXT_external_objects.xml b/src/mapi/glapi/gen/EXT_external_objects.xml index ebcf6d7a4ac..d8e4f9a57f6 100644 --- a/src/mapi/glapi/gen/EXT_external_objects.xml +++ b/src/mapi/glapi/gen/EXT_external_objects.xml @@ -55,7 +55,7 @@ - + @@ -202,7 +202,7 @@ - + diff --git a/src/mesa/main/marshal.h b/src/mesa/main/marshal.h index 350e7c47d30..5754d66f6e6 100644 --- a/src/mesa/main/marshal.h +++ b/src/mesa/main/marshal.h @@ -476,4 +476,25 @@ _mesa_patch_param_enum_to_count(GLenum pname) } } +static inline unsigned +_mesa_memobj_enum_to_count(GLenum pname) +{ + switch (pname) { + case GL_DEDICATED_MEMORY_OBJECT_EXT: + return 1; + default: + return 0; + } +} + +static inline unsigned +_mesa_semaphore_enum_to_count(GLenum pname) +{ + switch (pname) { + /* EXT_semaphore and EXT_semaphore_fd define no parameters */ + default: + return 0; + } +} + #endif /* MARSHAL_H */