tests: respect VRENDTEST_USE_EGL_GLES

When VRENDTEST_USE_EGL_GLES is set, use GLES.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Chia-I Wu 3 years ago
parent 51f45f343b
commit c995f69808
  1. 2
      tests/test_virgl_cmd.c
  2. 2
      tests/test_virgl_init.c
  3. 2
      tests/test_virgl_resource.c
  4. 2
      tests/test_virgl_transfer.c

@ -1048,6 +1048,8 @@ int main(void)
if (getenv("VRENDTEST_USE_EGL_SURFACELESS"))
context_flags |= VIRGL_RENDERER_USE_SURFACELESS;
if (getenv("VRENDTEST_USE_EGL_GLES"))
context_flags |= VIRGL_RENDERER_USE_GLES;
s = virgl_init_suite();
sr = srunner_create(s);

@ -551,6 +551,8 @@ int main(void)
if (getenv("VRENDTEST_USE_EGL_SURFACELESS"))
context_flags |= VIRGL_RENDERER_USE_SURFACELESS;
if (getenv("VRENDTEST_USE_EGL_GLES"))
context_flags |= VIRGL_RENDERER_USE_GLES;
s = virgl_init_suite();
sr = srunner_create(s);

@ -329,6 +329,8 @@ int main(void)
if (getenv("VRENDTEST_USE_EGL_SURFACELESS"))
context_flags |= VIRGL_RENDERER_USE_SURFACELESS;
if (getenv("VRENDTEST_USE_EGL_GLES"))
context_flags |= VIRGL_RENDERER_USE_GLES;
s = virgl_init_suite();
sr = srunner_create(s);

@ -1023,6 +1023,8 @@ int main(void)
if (getenv("VRENDTEST_USE_EGL_SURFACELESS"))
context_flags |= VIRGL_RENDERER_USE_SURFACELESS;
if (getenv("VRENDTEST_USE_EGL_GLES"))
context_flags |= VIRGL_RENDERER_USE_GLES;
s = virgl_init_suite();
sr = srunner_create(s);

Loading…
Cancel
Save