[Piglit] [PATCH 00/10] Allow building and running EGL+GLES tests without GLX

Daniel Kurtz djkurtz at chromium.org
Wed Jan 15 03:09:55 PST 2014


With the following patches I am able to build and run piglit tests on a system
with no OpenGL and no GLX (ie, no glproto, no libGL.so and no /usr/include/GL).

The X11, GBM and wayland patches are really 'bug reports', it seems like they
too should be probed rather than assumed.

I'm really not sure about that last patch.  It works for my situation, since
my libEGL.so, libGLESv2.so and libGLESv1_CM.so are all exactly the same library
(they are all just symlinks to vendor .so).  But I don't think it will work in
the general case where these are really separate libraries, with potentially
conflicting core functions.

Daniel Kurtz (10):
  CMakeLists: indent spaces -> tabs
  CMakeLists: do not unconditionally find OpenGL package
  CMakeLists: only find GLEXT paths if OpenGL is also found
  CMakeLists: GLX is not always present on Linux
  piglit-dispatch: only use glXGetProcAddressARB if PIGLIT_HAS_GLX
  piglit-dispatch: Use eglGetProcAddress if PIGLIT_HAS_EGL but not GLX
  CMakeLists: only set HAS_X11 if X11_FOUND
  CMakeLists: Only set HAS_GBM if pkgconfig finds gbm
  CMakeLists: probe for wayland support instead of unconditionally
    defining
  piglit-dispatch-init: use dlsym to dispatch EGL core functions on
    Linux

 CMakeLists.txt                                     | 71 ++++++++++++----------
 tests/cl/CMakeLists.txt                            | 34 +++++------
 tests/egl/CMakeLists.gl.txt                        |  2 +-
 tests/egl/spec/egl-1.4/CMakeLists.gles2.txt        |  4 +-
 tests/glx/CMakeLists.gl.txt                        |  6 +-
 tests/spec/arb_timer_query/CMakeLists.gl.txt       |  2 +-
 .../ext_framebuffer_multisample/CMakeLists.gl.txt  |  2 +-
 tests/spec/ext_timer_query/CMakeLists.gl.txt       |  4 +-
 .../spec/glx_arb_create_context/CMakeLists.gl.txt  |  6 +-
 .../spec/glx_ext_import_context/CMakeLists.gl.txt  |  6 +-
 .../spec/glx_mesa_query_renderer/CMakeLists.gl.txt |  6 +-
 tests/spec/glx_oml_sync_control/CMakeLists.gl.txt  |  6 +-
 .../CMakeLists.gles1.txt                           |  6 +-
 .../CMakeLists.gles2.txt                           |  6 +-
 .../CMakeLists.gles1.txt                           |  6 +-
 tests/texturing/CMakeLists.gl.txt                  | 10 +--
 tests/util/CMakeLists.txt                          |  6 +-
 tests/util/piglit-dispatch-init.c                  | 44 +++++++++++++-
 18 files changed, 137 insertions(+), 90 deletions(-)

-- 
1.8.5.2



More information about the Piglit mailing list