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

Ian Romanick idr at freedesktop.org
Fri Jun 17 17:20:54 UTC 2016


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



More information about the mesa-dev mailing list