OSDN Git Service

opengl: Update headers and registry and regenerate *api.in
authorPablo Ceballos <pceballos@google.com>
Tue, 27 Oct 2015 21:00:42 +0000 (14:00 -0700)
committerPablo Ceballos <pceballos@google.com>
Fri, 18 Dec 2015 19:56:41 +0000 (11:56 -0800)
commit4690754ec38f77431431910ce878850e1c60ab79
tree5699e45bf633ea78964c0d786130e8763dbef9f0
parent1298f4a3cc291130886bfb215681faed92da523c
opengl: Update headers and registry and regenerate *api.in

- Update the registry xml files and python scripts in glgen2. Took
  r32166 from:
  https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/

- Update the GLES headers (and add gl32.h). Took r32166 from:
  https://cvs.khronos.org/svn/repos/registry/trunk/public/gles/api/

- Include gl32.h in libs/hooks.h

- Update glgen2/glgen.py to properly handle glPathGlyphIndexRangeNV
  which uses an explicit array parameter (and is the only GL extension
  that does this). This modification also fixes a bunch of whitespace
  issues in the *.in files.

- Get rid of the remaining bits of glTrace code in glgen2/glgen.py

- Regenerate the *.in files with glgen2

- The official glext.h hasn't been updated and differs from the
  registry in the second to last argument to glMultiDrawElementsEXT.
  This file was previously modified to match the registry and this
  modification has been carried forward in this commit.

- getProcAddress.cpp was failing to compile for ARM because the
  inline assembly for loading the function pointer now exceeds the
  limit of 4095 for an immediate offset to the ldr instruction on ARM.
  Modify it to instead load the offset into a register and add it with
  an add instruction before the ldr instruction.

- Khronos has added #ifdef GL_GLEXT_PROTOTYPES guards to the function
  prototypes in gl2/3.h. In order to keep existing code compiling add
  #define GL_GLEXT_PROTOTYPES to include/KHR/khrplatform.h for now.
  This should be fixed upstream and when it is this can be removed.

Change-Id: I952ace43879557d7c363810b83d65159ad2ad1e3
20 files changed:
opengl/include/GLES2/gl2.h
opengl/include/GLES2/gl2ext.h
opengl/include/GLES3/gl3.h
opengl/include/GLES3/gl31.h
opengl/include/GLES3/gl32.h [new file with mode: 0644]
opengl/include/GLES3/gl3platform.h
opengl/include/KHR/khrplatform.h
opengl/libs/EGL/getProcAddress.cpp
opengl/libs/GLES2/gl2_api.in
opengl/libs/GLES2/gl2ext_api.in
opengl/libs/GLES_CM/gl_api.in
opengl/libs/GLES_CM/glext_api.in
opengl/libs/entries.in
opengl/libs/enums.in
opengl/libs/hooks.h
opengl/tools/glgen2/glgen.py
opengl/tools/glgen2/registry/egl.xml
opengl/tools/glgen2/registry/genheaders.py
opengl/tools/glgen2/registry/gl.xml
opengl/tools/glgen2/registry/reg.py