<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 28, 2017 at 8:59 AM, Aníbal Limón <span dir="ltr">&lt;<a href="mailto:limon.anibal@gmail.com" target="_blank">limon.anibal@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org">anibal.limon@linaro.org</a>&gt;<br>
<br>
The entry point is not guaranteed to exist, so use the<br>
piglit_egl_get_default_<wbr>display() helper which does the correct thing.<br>
<br>
Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org">anibal.limon@linaro.org</a>&gt;<br>
Signed-off-by: Daniel Díaz &lt;<a href="mailto:daniel.diaz@linaro.org">daniel.diaz@linaro.org</a>&gt;<br>
---<br>
 ...gl-context-priority.c-Use-<wbr>piglit_egl_get_.patch | 41 ++++++++++++++++++++++<br>
 meta/recipes-graphics/piglit/<a href="http://piglit_git.bb" rel="noreferrer" target="_blank">p<wbr>iglit_git.bb</a>         |  1 +<br>
 2 files changed, 42 insertions(+)<br>
 create mode 100644 meta/recipes-graphics/piglit/<wbr>piglit/0001-tests-egl-egl-<wbr>context-priority.c-Use-piglit_<wbr>egl_get_.patch<br>
<br>
diff --git a/meta/recipes-graphics/<wbr>piglit/piglit/0001-tests-egl-<wbr>egl-context-priority.c-Use-<wbr>piglit_egl_get_.patch b/meta/recipes-graphics/<wbr>piglit/piglit/0001-tests-egl-<wbr>egl-context-priority.c-Use-<wbr>piglit_egl_get_.patch<br>
new file mode 100644<br>
index 0000000000..13b997c037<br>
--- /dev/null<br>
+++ b/meta/recipes-graphics/<wbr>piglit/piglit/0001-tests-egl-<wbr>egl-context-priority.c-Use-<wbr>piglit_egl_get_.patch<br>
@@ -0,0 +1,41 @@<br>
+From cb562a383229074b44db6998b85572<wbr>d2abe7c363 Mon Sep 17 00:00:00 2001<br>
+From: =?UTF-8?q?An=C3=ADbal=20Lim=<wbr>C3=B3n?= &lt;<a href="mailto:anibal.limon@linaro.org">anibal.limon@linaro.org</a>&gt;<br>
+Date: Fri, 24 Nov 2017 10:31:55 -0600<br>
+Subject: [PATCH] tests/egl/egl-context-<wbr>priority.c: Use<br>
+ piglit_egl_get_default_display<br>
+MIME-Version: 1.0<br>
+Content-Type: text/plain; charset=UTF-8<br>
+Content-Transfer-Encoding: 8bit<br>
+<br>
+The entry point is not guaranteed to exist, so use the<br>
+piglit_egl_get_default_<wbr>display() helper which does the correct thing.<br>
+<br>
+Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org">anibal.limon@linaro.org</a>&gt;<br>
+Signed-off-by: Daniel Díaz &lt;<a href="mailto:daniel.diaz@linaro.org">daniel.diaz@linaro.org</a>&gt;<br>
+Reviewed-by: Tapani Pälli &lt;<a href="mailto:tapani.palli@intel.com">tapani.palli@intel.com</a>&gt;<br>
+Reviewed-by: Emil Velikov &lt;<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>&gt;<br>
+<br>
+Upstream-status: Backport<br>
+<br>
+<a href="https://github.com/Igalia/piglit/commit/cb562a3832" rel="noreferrer" target="_blank">https://github.com/Igalia/<wbr>piglit/commit/cb562a3832</a></blockquote><div><br></div><div>Now is a backport, the piglit people pushed to master the patch.</div><div><br></div><div>Cheers,</div><div>Anibal</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
+---<br>
+ tests/egl/egl-context-<wbr>priority.c | 3 +--<br>
+ 1 file changed, 1 insertion(+), 2 deletions(-)<br>
+<br>
+diff --git a/tests/egl/egl-context-<wbr>priority.c b/tests/egl/egl-context-<wbr>priority.c<br>
+index 7f26fc614..9590ccae3 100644<br>
+--- a/tests/egl/egl-context-<wbr>priority.c<br>
++++ b/tests/egl/egl-context-<wbr>priority.c<br>
+@@ -99,8 +99,7 @@ piglit_init(int argc, char **argv)<br>
+       if (!strstr(exts, &quot;EGL_MESA_platform_<wbr>surfaceless&quot;))<br>
+               piglit_report_result(PIGLIT_<wbr>SKIP);<br>
+<br>
+-      dpy = eglGetPlatformDisplay(EGL_<wbr>PLATFORM_SURFACELESS_MESA,<br>
+-                                  EGL_DEFAULT_DISPLAY, NULL);<br>
++      dpy = piglit_egl_get_default_<wbr>display(EGL_PLATFORM_<wbr>SURFACELESS_MESA);<br>
+<br>
+       ok = eglInitialize(dpy, &amp;major, &amp;minor);<br>
+       if (!ok) {<br>
+--<br>
+2.11.0<br>
+<br>
diff --git a/meta/recipes-graphics/<wbr>piglit/<a href="http://piglit_git.bb" rel="noreferrer" target="_blank">piglit_git.bb</a> b/meta/recipes-graphics/<wbr>piglit/<a href="http://piglit_git.bb" rel="noreferrer" target="_blank">piglit_git.bb</a><br>
index d274a8fbd5..45fd534dfa 100644<br>
--- a/meta/recipes-graphics/<wbr>piglit/<a href="http://piglit_git.bb" rel="noreferrer" target="_blank">piglit_git.bb</a><br>
+++ b/meta/recipes-graphics/<wbr>piglit/<a href="http://piglit_git.bb" rel="noreferrer" target="_blank">piglit_git.bb</a><br>
@@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = &quot;file://COPYING;md5=<wbr>b2beded7103a3d8a442a2a0391d607<wbr>b0&quot;<br>
 SRC_URI = &quot;git://<a href="http://anongit.freedesktop.org/piglit" rel="noreferrer" target="_blank">anongit.freedesktop.<wbr>org/piglit</a> \<br>
            file://0001-cmake-install-<wbr>bash-completions-in-the-right-<wbr>place.patch \<br>
            file://0001-tests-Use-FE_<wbr>UPWARD-only-if-its-defined-in-<wbr>fenv.h.patch \<br>
+           file://0001-tests-egl-egl-<wbr>context-priority.c-Use-piglit_<wbr>egl_get_.patch \<br>
            &quot;<br>
 UPSTREAM_VERSION_UNKNOWN = &quot;1&quot;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.11.0<br>
<br>
</font></span></blockquote></div><br></div></div>