[Piglit] [PATCH 0/4] Generate code from gl.xml
Fabian Bieler
fabianbieler at fastmail.fm
Sat Feb 22 01:01:38 PST 2014
Hello!
This series makes piglit generate the dispatch and get-enum-name code from Khronos' gl.xml
rather than the old .spec and header files.
This will come in handy for writing tests for newer gles2 extensions.
Due to their size some patches are zipped.
Patch 1 only adds gl.xml
Patch 2 adds the python code to generate the dispatch code from gl.xml.
Patch 3 only removes the no longer needed gl .spec and header files.
Patch 4 generates the get-enum-name helper functions from gl.xml.
The series can also be found at
https://github.com/fabe3k/piglit/tree/gl-xml
Fabian
Fabian Bieler (4):
glapi: Add Khronos' gl.xml rev 25488.
Generate piglit-dispatch from gl.xml.
Remove no longer used gl .spec and header files.
Autogenerate get_enum_name functions from gl.xml.
CMakeLists.txt | 2 +-
cmake/piglit_dispatch.cmake | 2 +-
cmake/piglit_get_enum.cmake | 50 +
cmake/piglit_glapi.cmake | 45 -
cmake/piglit_util.cmake | 23 +
glapi/GLES2/gl2ext.h | 2006 --
glapi/GLES3/gl3.h | 1061 -
glapi/enum.spec | 9296 --------
glapi/enumext.spec | 8260 -------
glapi/gl.spec | 35909 -----------------------------
glapi/gl.tm | 355 -
glapi/gl.xml | 41443 ++++++++++++++++++++++++++++++++++
glapi/parse_glspec.py | 555 -
tests/util/.gitignore | 3 +
tests/util/CMakeLists.gles1.txt | 2 +-
tests/util/CMakeLists.gles2.txt | 2 +-
tests/util/CMakeLists.gles3.txt | 2 +-
tests/util/gen-get-enum.py | 285 +
tests/util/gen_dispatch.py | 234 +-
tests/util/piglit-dispatch.h | 1 +
tests/util/piglit-util-gl-enum.c | 3008 +--
tests/util/piglit-util-gles1-enum.c | 27 +
tests/util/piglit-util-gles2-enum.c | 27 +
tests/util/piglit-util-gles3-enum.c | 728 -
24 files changed, 42018 insertions(+), 61308 deletions(-)
create mode 100644 cmake/piglit_get_enum.cmake
delete mode 100644 cmake/piglit_glapi.cmake
delete mode 100644 glapi/GLES2/gl2ext.h
delete mode 100644 glapi/GLES3/gl3.h
delete mode 100644 glapi/enum.spec
delete mode 100644 glapi/enumext.spec
delete mode 100644 glapi/gl.spec
delete mode 100644 glapi/gl.tm
create mode 100644 glapi/gl.xml
delete mode 100644 glapi/parse_glspec.py
create mode 100644 tests/util/gen-get-enum.py
create mode 100644 tests/util/piglit-util-gles1-enum.c
create mode 100644 tests/util/piglit-util-gles2-enum.c
delete mode 100644 tests/util/piglit-util-gles3-enum.c
--
1.8.3.2
More information about the Piglit
mailing list