[Piglit] [PATCH 3/5] egl-util: use piglit_egl_get_display over eglGetDisplay
Emil Velikov
emil.l.velikov at gmail.com
Mon Dec 11 20:15:21 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
The latter is a legacy and somewhat of a hack.
Since we explicitly know that this requires the X11, simply use the
helper which will use the correct EGL_PLATFORM API.
Cc: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
tests/egl/egl-util.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/egl/egl-util.c b/tests/egl/egl-util.c
index 8af1a4cbd..92a799185 100644
--- a/tests/egl/egl-util.c
+++ b/tests/egl/egl-util.c
@@ -233,9 +233,9 @@ egl_util_run(const struct egl_test *test, int argc, char *argv[])
}
- state.egl_dpy = eglGetDisplay(state.dpy);
+ state.egl_dpy = piglit_egl_get_display(EGL_PLATFORM_X11_EXT, state.dpy);
if (state.egl_dpy == EGL_NO_DISPLAY) {
- fprintf(stderr, "eglGetDisplay() failed\n");
+ fprintf(stderr, "piglit_egl_get_display() failed\n");
result = PIGLIT_FAIL;
goto fail;
}
--
2.15.0
More information about the Piglit
mailing list