[Mesa-dev] [PATCH 01/17] docs/specs: Add GL_MESA_program_binary_formats extension spec
Jordan Justen
jordan.l.justen at intel.com
Thu Nov 9 06:42:13 UTC 2017
Similar idea to Tim's "spec: MESA_program_binary", but simplified and
written to support both ARB_get_program_binary and
OES_get_program_binary.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Cc: Ian Romanick <idr at freedesktop.org>
Cc: Timothy Arceri <tarceri at itsqueeze.com>
---
docs/specs/MESA_program_binary_formats.txt | 59 ++++++++++++++++++++++++++++++
docs/specs/enums.txt | 3 ++
src/mapi/glapi/registry/gl.xml | 2 +-
3 files changed, 63 insertions(+), 1 deletion(-)
create mode 100644 docs/specs/MESA_program_binary_formats.txt
diff --git a/docs/specs/MESA_program_binary_formats.txt b/docs/specs/MESA_program_binary_formats.txt
new file mode 100644
index 00000000000..65bd1a1a739
--- /dev/null
+++ b/docs/specs/MESA_program_binary_formats.txt
@@ -0,0 +1,59 @@
+Name
+
+ MESA_program_binary_formats
+
+Name Strings
+
+ GL_MESA_program_binary_formats
+
+Contact
+
+ Jordan Justen (jordan.l.justen 'at' intel.com)
+
+Status
+
+ Complete.
+
+Version
+
+ Last Modified Date: October 28, 2017
+ Revision: #1
+
+Number
+
+ TBD
+
+Dependencies
+
+ For use with the OpenGL ARB_get_program_binary extension, or the
+ OpenGL ES OES_get_program_binary extension.
+
+Overview
+
+ The get_program_binary exensions require a GLenum binaryFormat.
+ This extension documents that format for use with Mesa.
+
+New Procedures and Functions
+
+ None.
+
+New Tokens
+
+ GL_PROGRAM_BINARY_FORMAT_MESA 0x875F
+
+ For ARB_get_program_binary, GL_PROGRAM_BINARY_FORMAT_MESA may be
+ returned from GetProgramBinary calls in the <binaryFormat>
+ parameter and when retrieving the value of PROGRAM_BINARY_FORMATS.
+
+ For OES_get_program_binary, GL_PROGRAM_BINARY_FORMAT_MESA may be
+ returned from GetProgramBinaryOES calls in the <binaryFormat>
+ parameter and when retrieving the value of
+ PROGRAM_BINARY_FORMATS_OES.
+
+New State
+
+ None.
+
+Revision History
+
+ #01 10/28/2017 Jordan Justen First draft.
diff --git a/docs/specs/enums.txt b/docs/specs/enums.txt
index 4b0485f3490..8109cc50f97 100644
--- a/docs/specs/enums.txt
+++ b/docs/specs/enums.txt
@@ -63,6 +63,9 @@ GL_MESAX_texture_stack:
GL_TEXTURE_1D_STACK_BINDING_MESAX 0x875D
GL_TEXTURE_2D_STACK_BINDING_MESAX 0x875E
+GL_MESA_program_binary_formats:
+ GL_PROGRAM_BINARY_FORMAT_MESA 0x875F
+
GL_MESA_program_debug
GL_FRAGMENT_PROGRAM_POSITION_MESA 0x8BB0
GL_FRAGMENT_PROGRAM_CALLBACK_MESA 0x8BB1
diff --git a/src/mapi/glapi/registry/gl.xml b/src/mapi/glapi/registry/gl.xml
index cbabe11b398..7360414bb35 100644
--- a/src/mapi/glapi/registry/gl.xml
+++ b/src/mapi/glapi/registry/gl.xml
@@ -5505,7 +5505,7 @@ typedef unsigned int GLhandleARB;
<enum value="0x875C" name="GL_PROXY_TEXTURE_2D_STACK_MESAX"/>
<enum value="0x875D" name="GL_TEXTURE_1D_STACK_BINDING_MESAX"/>
<enum value="0x875E" name="GL_TEXTURE_2D_STACK_BINDING_MESAX"/>
- <unused start="0x875F" vendor="MESA"/>
+ <enum value="0x875F" name="GL_PROGRAM_BINARY_FORMAT_MESA"/>
</enums>
<enums namespace="GL" start="0x8760" end="0x883F" vendor="AMD">
--
2.14.1
More information about the mesa-dev
mailing list