mesa: add OES_texture_buffer and EXT_texture_buffer support
Allow ES 3.1 contexts to access the texture buffer functionality. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -68,7 +68,7 @@ class exec_info():
|
||||
functions = {
|
||||
# OpenGL 3.1 / GL_ARB_texture_buffer_object. Mesa only exposes this
|
||||
# extension with core profile.
|
||||
"TexBuffer": exec_info(core=31),
|
||||
"TexBuffer": exec_info(core=31, es2=31),
|
||||
|
||||
# OpenGL 3.2 / GL_OES_geometry_shader.
|
||||
"FramebufferTexture": exec_info(core=32, es2=31),
|
||||
@@ -146,7 +146,7 @@ functions = {
|
||||
|
||||
# OpenGL 4.3 / GL_ARB_texture_buffer_range. Mesa can expose the extension
|
||||
# with OpenGL 3.1.
|
||||
"TexBufferRange": exec_info(core=31),
|
||||
"TexBufferRange": exec_info(core=31, es2=31),
|
||||
|
||||
# OpenGL 4.3 / GL_ARB_framebuffer_no_attachments. Mesa can expose the
|
||||
# extension with OpenGL 3.0.
|
||||
|
||||
@@ -847,6 +847,24 @@
|
||||
|
||||
</category>
|
||||
|
||||
<category name="GL_EXT_texture_buffer" number="183">
|
||||
|
||||
<function name="TexBufferEXT" es2="3.1" alias="TexBuffer">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="internalFormat" type="GLenum"/>
|
||||
<param name="buffer" type="GLuint"/>
|
||||
</function>
|
||||
|
||||
<function name="TexBufferRangeEXT" es2="3.1" alias="TexBufferRange">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="internalformat" type="GLenum"/>
|
||||
<param name="buffer" type="GLuint"/>
|
||||
<param name="offset" type="GLintptr"/>
|
||||
<param name="size" type="GLsizeiptr"/>
|
||||
</function>
|
||||
|
||||
</category>
|
||||
|
||||
<category name="GL_EXT_draw_elements_base_vertex" number="204">
|
||||
|
||||
<function name="DrawElementsBaseVertexEXT" alias="DrawElementsBaseVertex"
|
||||
@@ -891,6 +909,24 @@
|
||||
|
||||
</category>
|
||||
|
||||
<category name="GL_OES_texture_buffer" number="216">
|
||||
|
||||
<function name="TexBufferOES" es2="3.1" alias="TexBuffer">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="internalFormat" type="GLenum"/>
|
||||
<param name="buffer" type="GLuint"/>
|
||||
</function>
|
||||
|
||||
<function name="TexBufferRangeOES" es2="3.1" alias="TexBufferRange">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="internalformat" type="GLenum"/>
|
||||
<param name="buffer" type="GLuint"/>
|
||||
<param name="offset" type="GLintptr"/>
|
||||
<param name="size" type="GLsizeiptr"/>
|
||||
</function>
|
||||
|
||||
</category>
|
||||
|
||||
<category name="GL_OES_draw_elements_base_vertex" number="219">
|
||||
|
||||
<function name="DrawElementsBaseVertexOES" alias="DrawElementsBaseVertex"
|
||||
|
||||
Reference in New Issue
Block a user