Skip to content

Add PIGLIT_BUILD_EGL_TESTS

Fabrice Fontaine requested to merge ffontaine/piglit:main into main

Allow the user to disable EGL tests to avoid the following build failure with sunxi-mainline-driver (which provides libegl):

[ 11%] Building C object target_api/no_api/tests/egl/spec/egl_ext_device_query/CMakeFiles/egl_ext_device_query.dir/egl_ext_device_query.c.o
/tmp/instance-0/output-1/build/piglit-2affee53f3ad7a96f5b397a2b6d6408af8a374b0/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c: In function 'main':
/tmp/instance-0/output-1/build/piglit-2affee53f3ad7a96f5b397a2b6d6408af8a374b0/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c:32:2: error: unknown type name 'EGLDeviceEXT'
   32 |  EGLDeviceEXT device = EGL_NO_DEVICE_EXT;
      |  ^~~~~~~~~~~~
/tmp/instance-0/output-1/build/piglit-2affee53f3ad7a96f5b397a2b6d6408af8a374b0/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c:32:24: error: 'EGL_NO_DEVICE_EXT' undeclared (first use in this function)
   32 |  EGLDeviceEXT device = EGL_NO_DEVICE_EXT;
      |                        ^~~~~~~~~~~~~~~~~
/tmp/instance-0/output-1/build/piglit-2affee53f3ad7a96f5b397a2b6d6408af8a374b0/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c:32:24: note: each undeclared identifier is reported only once for each function it appears in
/tmp/instance-0/output-1/build/piglit-2affee53f3ad7a96f5b397a2b6d6408af8a374b0/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c:35:2: error: unknown type name 'PFNEGLQUERYDISPLAYATTRIBEXTPROC'
   35 |  PFNEGLQUERYDISPLAYATTRIBEXTPROC queryDisplayAttrib;
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

Merge request reports

Loading