Commit 19a126d3 authored by chadversary's avatar chadversary

tests/gl_basic_test: Support platform surfaceless_egl

Run with `bin/gl_basic_test --platform=surfaceless_egl`.

All the tests fail! The rgba pixels returned by glReadPixels are
black (0x0, 0x0, 0x0, 0xff), but the test expects magenta (0xff, 0x0,
0xff, 0xff). I don't know why.

Cc: Gurchetan Singh <gurchetansingh@chromium.org>
Cc: Haixia Shi <hshi@chromium.org>
Reviewed-by: Emil Velikov's avatarEmil Velikov <emil.l.velikov@gmail.com>
parent 0b4e2a1b
......@@ -703,6 +703,17 @@ CREATE_TESTSUITE(WAFFLE_PLATFORM_GLX, glx)
#endif // WAFFLE_HAS_GLX
#ifdef WAFFLE_HAS_SURFACELESS_EGL
#define unit_test_make(name) \
cmocka_unit_test_setup_teardown(name, setup_surfaceless_egl, gl_basic_fini)
CREATE_TESTSUITE(WAFFLE_PLATFORM_SURFACELESS_EGL, surfaceless_egl)
#undef unit_test_make
#endif // WAFFLE_HAS_GBM
#ifdef WAFFLE_HAS_WAYLAND
#define unit_test_make(name) \
......@@ -819,6 +830,8 @@ static const struct enum_map platform_map[] = {
{WAFFLE_PLATFORM_WAYLAND, "wayland" },
{WAFFLE_PLATFORM_WGL, "wgl" },
{WAFFLE_PLATFORM_X11_EGL, "x11_egl" },
{WAFFLE_PLATFORM_SURFACELESS_EGL, "surfaceless_egl" },
{WAFFLE_PLATFORM_SURFACELESS_EGL, "sl" },
{0, 0 },
};
......@@ -923,6 +936,10 @@ main(int argc, char *argv[])
case WAFFLE_PLATFORM_GLX:
return testsuite_glx();
#endif
#ifdef WAFFLE_HAS_SURFACELESS_EGL
case WAFFLE_PLATFORM_SURFACELESS_EGL:
return testsuite_surfaceless_egl();
#endif
#ifdef WAFFLE_HAS_WAYLAND
case WAFFLE_PLATFORM_WAYLAND:
return testsuite_wayland();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment