[Mesa-dev] [PATCH 0/7] Enable GL_OES_geometry_shader for OpenGL ES 3.1

Marta Lofstedt marta.lofstedt at linux.intel.com
Wed Sep 23 01:42:24 PDT 2015


This is an initial patch set for enabling
GL_OES_geometry_shader for OpenGL ES 3.1.

For verification I am using the GL_EXT_geometry_shader tests
that are part of the OpenGL ES 3.1 CTS suit.

I keep the patches here:
https://github.com/MartaLo/mesa/tree/gl_oes_geometry_shaders

About the patches:

gles2: Update gl2ext.h to revision: 31902:
Since the GL_OES_geometry_shader has been accepted,
there is no reason to implement the old
GL_EXT_geometry_shader. Therefore, I need the latest gl2ext.h

glapi: add GL_OES_geometry_shader extension:
I wanted to use the already implemented FramebufferTexture
function as an alias for FramebufferTextureOES, but I
could only get this to work by allowing the function for
GLES 3.1 in apiexec.py

mesa: Add extension enable for GL_OES_geometry_shader:
Straight forward addition to the extension_table,
the gl_extensions struct and addition to dispatch.
I have found no consensus if this should be squashed
with previous patch or not.

glsl: add support for GL_OES_geometry_shader:
This enables the Gl_OES_geometry_shader for GLSL ES 310.
However, I am not sure if the solution for enabling layout
in glsl_parser.yy is acceptable. Let's discuss this...

mesa: enable enums for OES_geometry_shader:
This is just a suggestion. I have no strong opinions
as to how this is supposed to be done. Let's discuss...

mesa: Update _mesa_has_geometry_shaders
Just add gles 31 and OES-geometry_shaders to
the _mesa_has_geometry_shaders function.

doc: Set GL_OES_geometry_shader as started
Just added my name to this.


Marta Lofstedt (7):
  gles2: Update gl2ext.h to revision: 31902
  glapi: add GL_OES_geometry_shader extension
  mesa: Add extension enable for GL_OES_geometry_shader
  glsl: add support for GL_OES_geometry_shader
  mesa: enable enums for OES_geometry_shader
  mesa: Update _mesa_has_geometry_shaders
  doc: Set GL_OES_geometry_shader as started

 docs/GL3.txt                            |   2 +-
 include/GLES2/gl2ext.h                  | 921 +++++++++++++++++++++++++++++++-
 src/glsl/builtin_variables.cpp          |  16 +-
 src/glsl/glsl_parser.yy                 |   4 +-
 src/glsl/glsl_parser_extras.cpp         |   1 +
 src/glsl/glsl_parser_extras.h           |   2 +
 src/mapi/glapi/gen/apiexec.py           |   2 +-
 src/mapi/glapi/gen/es_EXT.xml           |  43 ++
 src/mesa/main/context.h                 |   7 +-
 src/mesa/main/extensions.c              |   1 +
 src/mesa/main/get.c                     |  18 +
 src/mesa/main/get_hash_params.py        |  50 +-
 src/mesa/main/mtypes.h                  |   1 +
 src/mesa/main/tests/dispatch_sanity.cpp |   3 +
 14 files changed, 1028 insertions(+), 43 deletions(-)

-- 
2.1.4



More information about the mesa-dev mailing list