[Mesa-dev] [Mesa-stable] [PATCH] mapi: Export all GLES 3.1 functions in libGLESv2.so

Andreas Boll andreas.boll.dev at gmail.com
Tue Jul 19 08:55:48 UTC 2016


Hi,

sorry for being late but this patch doesn't mention that all those
symbols should be exported in libGL.so too [1].
If you look at the history of static_data.py it was mentioned that
this list of functions should never grow [2].

Thanks,
Andreas

[1] https://anonscm.debian.org/cgit/pkg-xorg/lib/mesa.git/commit/?h=debian-experimental&id=abc592b02856f4438da97693025f5ccd9807a443
[2] https://cgit.freedesktop.org/mesa/mesa/commit/?id=d9be1db4b69a04f58a951351051ef9798d55da98

2016-06-17 19:20 GMT+02:00 Ian Romanick <idr at freedesktop.org>:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Khronos recommends that the GLES 3.1 library also be called libGLESv2.
> It also requires that functions be statically linkable from that
> library.
>
> NOTE: Mesa has supported the EGL_KHR_get_all_proc_addresses extension
> since at least Mesa 10.5, so applications targeting Linux should use
> eglGetProcAddress to avoid problems running binaries on systems with
> older, non-GLES 3.1 libGLESv2 libraries.
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> Cc: "11.2 12.0" <mesa-stable at lists.freedesktop.org>
> Cc: Mike Gorchak <mike.gorchak.qnx at gmail.com>
> Reported-by: Mike Gorchak <mike.gorchak.qnx at gmail.com>
> ---
>  src/mapi/glapi/gen/static_data.py | 51 +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 51 insertions(+)
>
> diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
> index 142c503..b25dab1 100644
> --- a/src/mapi/glapi/gen/static_data.py
> +++ b/src/mapi/glapi/gen/static_data.py
> @@ -437,6 +437,7 @@ offsets = {
>
>  functions = [
>     "Accum",
> +   "ActiveShaderProgram",
>     "ActiveTexture",
>     "ActiveTextureARB",
>     "AlphaFunc",
> @@ -470,6 +471,7 @@ functions = [
>     "BindImageTexture",
>     "BindImageTextures",
>     "BindProgramARB",
> +   "BindProgramPipeline",
>     "BindRenderbuffer",
>     "BindRenderbufferEXT",
>     "BindSampler",
> @@ -615,6 +617,7 @@ functions = [
>     "CreateProgramObjectARB",
>     "CreateShader",
>     "CreateShaderObjectARB",
> +   "CreateShaderProgramv",
>     "CullFace",
>     "DebugMessageCallback",
>     "DebugMessageCallbackARB",
> @@ -629,6 +632,7 @@ functions = [
>     "DeleteLists",
>     "DeleteObjectARB",
>     "DeleteProgram",
> +   "DeleteProgramPipelines",
>     "DeleteProgramsARB",
>     "DeleteQueries",
>     "DeleteQueriesARB",
> @@ -737,6 +741,7 @@ functions = [
>     "Fogiv",
>     "Fogx",
>     "Fogxv",
> +   "FramebufferParameteri",
>     "FramebufferRenderbuffer",
>     "FramebufferRenderbufferEXT",
>     "FramebufferTexture",
> @@ -761,6 +766,7 @@ functions = [
>     "GenFramebuffers",
>     "GenFramebuffersEXT",
>     "GenLists",
> +   "GenProgramPipelines",
>     "GenProgramsARB",
>     "GenQueries",
>     "GenQueriesARB",
> @@ -818,6 +824,7 @@ functions = [
>     "GetFragDataLocationEXT",
>     "GetFramebufferAttachmentParameteriv",
>     "GetFramebufferAttachmentParameterivEXT",
> +   "GetFramebufferParameteriv",
>     "GetGraphicsResetStatusARB",
>     "GetHandleARB",
>     "GetHistogram",
> @@ -874,10 +881,17 @@ functions = [
>     "GetProgramEnvParameterdvARB",
>     "GetProgramEnvParameterfvARB",
>     "GetProgramInfoLog",
> +   "GetProgramInterfaceiv",
>     "GetProgramiv",
>     "GetProgramivARB",
>     "GetProgramLocalParameterdvARB",
>     "GetProgramLocalParameterfvARB",
> +   "GetProgramPipelineInfoLog",
> +   "GetProgramPipelineiv",
> +   "GetProgramResourceIndex",
> +   "GetProgramResourceiv",
> +   "GetProgramResourceLocation",
> +   "GetProgramResourceName",
>     "GetProgramStringARB",
>     "GetQueryIndexediv",
>     "GetQueryiv",
> @@ -973,6 +987,7 @@ functions = [
>     "IsList",
>     "IsProgram",
>     "IsProgramARB",
> +   "IsProgramPipeline",
>     "IsQuery",
>     "IsQueryARB",
>     "IsRenderbuffer",
> @@ -1032,6 +1047,7 @@ functions = [
>     "Materialxv",
>     "MatrixMode",
>     "MemoryBarrier",
> +   "MemoryBarrierByRegion",
>     "Minmax",
>     "MinSampleShading",
>     "MinSampleShadingARB",
> @@ -1192,6 +1208,39 @@ functions = [
>     "ProgramParameteri",
>     "ProgramParameteriARB",
>     "ProgramStringARB",
> +   "ProgramUniform1f",
> +   "ProgramUniform1fv",
> +   "ProgramUniform1i",
> +   "ProgramUniform1iv",
> +   "ProgramUniform1ui",
> +   "ProgramUniform1uiv",
> +   "ProgramUniform2f",
> +   "ProgramUniform2fv",
> +   "ProgramUniform2i",
> +   "ProgramUniform2iv",
> +   "ProgramUniform2ui",
> +   "ProgramUniform2uiv",
> +   "ProgramUniform3f",
> +   "ProgramUniform3fv",
> +   "ProgramUniform3i",
> +   "ProgramUniform3iv",
> +   "ProgramUniform3ui",
> +   "ProgramUniform3uiv",
> +   "ProgramUniform4f",
> +   "ProgramUniform4fv",
> +   "ProgramUniform4i",
> +   "ProgramUniform4iv",
> +   "ProgramUniform4ui",
> +   "ProgramUniform4uiv",
> +   "ProgramUniformMatrix2fv",
> +   "ProgramUniformMatrix2x3fv",
> +   "ProgramUniformMatrix2x4fv",
> +   "ProgramUniformMatrix3fv",
> +   "ProgramUniformMatrix3x2fv",
> +   "ProgramUniformMatrix3x4fv",
> +   "ProgramUniformMatrix4fv",
> +   "ProgramUniformMatrix4x2fv",
> +   "ProgramUniformMatrix4x3fv",
>     "ProvokingVertex",
>     "ProvokingVertexEXT",
>     "PushAttrib",
> @@ -1468,8 +1517,10 @@ functions = [
>     "UnmapBufferARB",
>     "UseProgram",
>     "UseProgramObjectARB",
> +   "UseProgramStages",
>     "ValidateProgram",
>     "ValidateProgramARB",
> +   "ValidateProgramPipeline",
>     "Vertex2d",
>     "Vertex2dv",
>     "Vertex2f",
> --
> 2.5.5
>
> _______________________________________________
> mesa-stable mailing list
> mesa-stable at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-stable


More information about the mesa-dev mailing list