[Piglit] [PATCH] tests/egl/egl-context-priority.c: Use piglit_egl_get_default_display
Aníbal Limón
limon.anibal at gmail.com
Fri Nov 24 16:31:55 UTC 2017
From: Aníbal Limón <anibal.limon at linaro.org>
Some EGL implementations do not actually ship all Khronos-extensions.
As it turns out, the Mali 450 driver does not include eglGetPlatformDisplay
symbol so there is not grauntee to exists use piglit_egl_get_default_display
wrapper instead. See rev 45095dc08b.
Signed-off-by: Aníbal Limón <anibal.limon at linaro.org>
Signed-off-by: Daniel Díaz <daniel.diaz at linaro.org>
---
tests/egl/egl-context-priority.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/egl/egl-context-priority.c b/tests/egl/egl-context-priority.c
index 7f26fc614..9590ccae3 100644
--- a/tests/egl/egl-context-priority.c
+++ b/tests/egl/egl-context-priority.c
@@ -99,8 +99,7 @@ piglit_init(int argc, char **argv)
if (!strstr(exts, "EGL_MESA_platform_surfaceless"))
piglit_report_result(PIGLIT_SKIP);
- dpy = eglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA,
- EGL_DEFAULT_DISPLAY, NULL);
+ dpy = piglit_egl_get_default_display(EGL_PLATFORM_SURFACELESS_MESA);
ok = eglInitialize(dpy, &major, &minor);
if (!ok) {
--
2.11.0
More information about the Piglit
mailing list