From patchwork Tue Nov 28 17:03:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= X-Patchwork-Id: 119893 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1961875qgn; Tue, 28 Nov 2017 09:03:31 -0800 (PST) X-Google-Smtp-Source: AGs4zMZwLU1pdXzPMYdV5rR3GjgMs58qGZOGwdQ7UbrsakM6VW0DvL2l9pUGxjUUVb9CAdMy92i8 X-Received: by 10.84.193.36 with SMTP id e33mr31963146pld.313.1511888611568; Tue, 28 Nov 2017 09:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511888611; cv=none; d=google.com; s=arc-20160816; b=tXOeDVn+QOCHtX2a1LTYDVTTfLtjWB7ChG/UTzREKWJ/DUBPHyxti/Nlqv290yDrYX fmNSh+yZK+YpY6i7BHFTqISgPuN8rKzyJ6iDJb44KU1CLTZqRHq4oha1Li2WztZERGfS S+VLnAz29zOzbT3ljZzw/UP+IAnWTmtgq94Q0DH7JQLNSjqSIAo6p/r6qBfrENArLX49 rwJBAvhIQ+/FtN3jpdyLNdYa0xWbXzA1Kjtla454OA8lc0LJumDsmi8WG6U3QNRwXCv8 57VKtwwiVPDfYDGIrmFcapkyuimO/Mra7iiPv3a5MmWkn8UJeAsbjnFtSHl7kOvgVUpm LbFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=oSfh0vuGpDpF2uxkQvUQWKHGKMVOgPb0oVwHZe0nYUw=; b=G7d0KAYc452gvQ1ZZg+EYKtHuz8BEC6X9O+dgTtbwcDQI8OkBrbKfRBFFWuXgf74FE CRFJoR52QYa7nJcPCxt1RtZhXlMGh0sZ7dR/NROIHpGF9bHAc+096HCR1dXxndYkoSJ8 RNRE20gpgSV9T/zxuxht1dmHFx4dicmAAZR5+8s8GCgOZttOlALVQ8EDrxe+0ivJiGty oKMkJQnSMYXtVvgOjNTGpRH+uG8A+1w47CAH7SEoxFYs4x8ZigikurfnLfe1ZTQE5Cai dFtjub8owyA+ouq+fgNXMkhIhVqGNfx3f+wnaoIqe8hG4giXPcbtn4gdzw2Uyc4iMmrA EoSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=biMUeZch; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id z2si23888339plk.55.2017.11.28.09.03.31; Tue, 28 Nov 2017 09:03:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=biMUeZch; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id E7701780BD; Tue, 28 Nov 2017 17:03:27 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-ot0-f196.google.com (mail-ot0-f196.google.com [74.125.82.196]) by mail.openembedded.org (Postfix) with ESMTP id DCBB5780A0 for ; Tue, 28 Nov 2017 17:03:26 +0000 (UTC) Received: by mail-ot0-f196.google.com with SMTP id j2so458439ota.13 for ; Tue, 28 Nov 2017 09:03:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oPn/JwPPjoRaOTzgVJbu7VlKgIol7xcc+dUMefUTqkQ=; b=biMUeZch2krM0hRGGXG4KO99Ik8N3B8KuCJxSN2Ah0TIGwcqcV9lJfyyLrHaYv7vs7 V/WGtDzxvPBe7QXhB25T8UsPqVcgkklk1Xceg1L7ogS/5ptW0jyh03btqKc0/TwFzYsz a7xcBYwxlHX4vehtK0dBUr/vTfXmJSjzUYK8yNiQrQLcpSVLPKKrK1A6c25dpNDIb7GS adYLJrPGYc4yjlYANvAinpIb6w6F3OY7jY38rjZdXHJaytlQMEM0yqFR5+SvtDkrRN+T jk6fv2ko7EAC13Pzt3LIaaQV6ABKmP/PSVIUzTSYxlyww+tpfHofm0NmNRQDpbX3K0II hqPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oPn/JwPPjoRaOTzgVJbu7VlKgIol7xcc+dUMefUTqkQ=; b=r7lwuZ7ZHD+xJ8fipm4yeLZXCQK0f1hxgjqGutAjAgwnZcIFs1WStiYGOI9lvAPenK M165THzHq7YZMb/eAo+CwoGgUCXaJMiu61SG5K92e4NI27ihSXqYB0N5Q19eylcbdvlU 2I9sDSFyteIJIHgvVD5g8H1jMTq55BXitmXDkosDdB+D9n8C7YcjZCJKeCLjaj5ZMQsl Nsi+vsqPWQceztQ4r0TY40CcDicGPFPdmbaOoKfXZ7rwZIo6upwE7wIzMgZrv/5MBmpE 1lbioM4/YEt03u3Tiut76yKmMpC/l73MYFC5PLJI6RtpF9i2Q2CczN3HQbB3xtIWQmDA yDaw== X-Gm-Message-State: AJaThX65I/GxLygGy1cDelD/Ruj5YW2ve89SQNHkggAYMVElOHNZWBp0 eXpe9BDSU0fm3yBcL8H3wBcZ7gVU X-Received: by 10.157.82.153 with SMTP id f25mr16880997oth.97.1511888607453; Tue, 28 Nov 2017 09:03:27 -0800 (PST) Received: from blackbox.Home (187-177-61-29.dynamic.axtel.net. [187.177.61.29]) by smtp.gmail.com with ESMTPSA id y51sm13742130oti.9.2017.11.28.09.03.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 09:03:26 -0800 (PST) From: =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= To: openembedded-core@lists.openembedded.org Date: Tue, 28 Nov 2017 11:03:23 -0600 Message-Id: <20171128170323.4864-1-limon.anibal@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Cc: =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= Subject: [OE-core] [PATCHv4] recipes-graphics/piglit: Add patch to fix build in some platforms X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Aníbal Limón The entry point is not guaranteed to exist, so use the piglit_egl_get_default_display() helper which does the correct thing. Signed-off-by: Aníbal Limón Signed-off-by: Daniel Díaz --- ...gl-context-priority.c-Use-piglit_egl_get_.patch | 41 ++++++++++++++++++++++ meta/recipes-graphics/piglit/piglit_git.bb | 1 + 2 files changed, 42 insertions(+) create mode 100644 meta/recipes-graphics/piglit/piglit/0001-tests-egl-egl-context-priority.c-Use-piglit_egl_get_.patch diff --git a/meta/recipes-graphics/piglit/piglit/0001-tests-egl-egl-context-priority.c-Use-piglit_egl_get_.patch b/meta/recipes-graphics/piglit/piglit/0001-tests-egl-egl-context-priority.c-Use-piglit_egl_get_.patch new file mode 100644 index 0000000000..e2e87cc1ed --- /dev/null +++ b/meta/recipes-graphics/piglit/piglit/0001-tests-egl-egl-context-priority.c-Use-piglit_egl_get_.patch @@ -0,0 +1,41 @@ +From cb562a383229074b44db6998b85572d2abe7c363 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= +Date: Fri, 24 Nov 2017 10:31:55 -0600 +Subject: [PATCH] tests/egl/egl-context-priority.c: Use + piglit_egl_get_default_display +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The entry point is not guaranteed to exist, so use the +piglit_egl_get_default_display() helper which does the correct thing. + +Signed-off-by: Aníbal Limón +Signed-off-by: Daniel Díaz +Reviewed-by: Tapani Pälli +Reviewed-by: Emil Velikov + +Upstream-Status: Backport + +https://cgit.freedesktop.org/piglit/commit/?id=cb562a3832 +--- + 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 + diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb index d274a8fbd5..45fd534dfa 100644 --- a/meta/recipes-graphics/piglit/piglit_git.bb +++ b/meta/recipes-graphics/piglit/piglit_git.bb @@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0" SRC_URI = "git://anongit.freedesktop.org/piglit \ file://0001-cmake-install-bash-completions-in-the-right-place.patch \ file://0001-tests-Use-FE_UPWARD-only-if-its-defined-in-fenv.h.patch \ + file://0001-tests-egl-egl-context-priority.c-Use-piglit_egl_get_.patch \ " UPSTREAM_VERSION_UNKNOWN = "1"