From patchwork Tue Nov 28 14:59:28 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: 119884 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1815543qgn; Tue, 28 Nov 2017 06:59:41 -0800 (PST) X-Google-Smtp-Source: AGs4zMbvl7KVonwcBtqXQVsFVm5i4FQC0u38gZw/huj5CZxa5Iu6bbZiv4ulUnCiAQQbaJlbKCfG X-Received: by 10.99.114.30 with SMTP id n30mr41773097pgc.271.1511881181813; Tue, 28 Nov 2017 06:59:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511881181; cv=none; d=google.com; s=arc-20160816; b=YTKO0IuUCQkWnl66pORnOUWQb/K5kSZhELy2FcXygNwSRjF3Ey0VxZM0o9GnXUmwxf iSsd+tmv3qQnfDFXpgsZxebegDnGR77bwkkPF/AFX4db6xGEFaXf03ikiK/gJgvxphxu J+RCiDVf64f4RS7TwAfXaarPbINMCkoqt27hlrzd0EkQAN9ho46J/zbPSsjDL0b/rKPO zqJAJSdQkUn0bkeT6rCrKJCvbtYTXe62g7xX87lBEOZQfdJAo8RMQdyxzgY61T8y87xO 752kAsFuJWPCvgTKHd9i6fXhKldE4SBJSm4Hnr6vm7hzlrIFpW4ZkYBMiR+3zGFSSYme krMg== 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=jGNA5o/jAUiUoV9XVP03NXOT6SLO7QH2/DujYl+BepI=; b=0mcXW3uQMi90q+OANloD5HQuXIvkFOgh1Pz0ysmp4hxWjKpoS84mLfZyJzTtJrCHk+ n/6pvG1UZZe2kpGZ0uFX1kZmZ1B2byF09j+z+XkabJBgjfcSZcYRz03YSAVA4bpgHVau 1OK/mpFtakCGB2JgU0oNwq9JNMpu32qlpFeYMLgURfclZJq7410iVvLk/eVIXj2BLwkM 9BCjUCFyiZOjR2OEyUf8IlbV345Dd3/Wbk4S6Nn88LSThIiiG4SPtrlcU9p5mKQtvZB3 c4DoPdH/kzpEWG6TE2xXGi2VLyk+rqornX/cgt9rVmfSDbbCFSCyioNVoW2gDZ//ld/r esvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=vQED7UCI; 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 l7si5051937pgq.631.2017.11.28.06.59.41; Tue, 28 Nov 2017 06:59:41 -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=vQED7UCI; 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 35E40780BD; Tue, 28 Nov 2017 14:59:35 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by mail.openembedded.org (Postfix) with ESMTP id 2FF2A600EB for ; Tue, 28 Nov 2017 14:59:33 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id x4so49706plv.10 for ; Tue, 28 Nov 2017 06:59:35 -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=BqzLbYECHb26ZPmdO3DDpfT8yfgIqQozvE8ncSJqwAw=; b=vQED7UCI+l0DY78DRLPK8bcTYVA64S7VFmx6LfHuCPi9CVmC2pV+LBeEyOEVlQZwIh qtQrTobF0YSRTpZ5Xa37n1zh5Q78E2tg2xfYxA4g6iLH1fCH1KRKYsNFVfHDWIyffsad mmVkwXBE7HJM96pYtvhqrWTsrHICj0EDO4hgMY6lJ24VyFgYxtmBo8gwFsK1jXVhkJfd xO99v3Ck9ShHvzsRLLfZ3GvElDZYIfoSbtkZISy93d0C6+qMQaCOEq23KfYicsjrE7F/ ox6jlxCoteLLVnIraCr/EZdEcyKY7Fy1YWcq/Phk1lF3jpSIQa7fZNCpqZvg1735Wtr+ aYYA== 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=BqzLbYECHb26ZPmdO3DDpfT8yfgIqQozvE8ncSJqwAw=; b=ogXyFvz55dobu1n1CEJApizpTAYLsy+Y8qgz6qMnl8/zbXa7+4av2I9xNwVvyC02Wa T86LRV/x3OXawNswEPvfRwx1Fqg2b89+MGm+VHgGG4xPpHt+9hrl/eLPhoWw1wXM6dZO d5XxvpGYXMxDFwLnYTLdH9atnz6uvRJPorlavEPj5N8jWUlW2rmaS62FeuNKl3csTz+y S4mVZ7lW/MzC+M9ibUhTkB3VoEAZDYvKPXUAu6+c5WudkfU0WL18uu7JTosIvHVNLRbZ hX3K6WOcIQ+nal+OGVM40lKLjP+7hCacKjSHvHuumOewZBlP0FhW4OB2Y1VCPbV+4EQN ic1g== X-Gm-Message-State: AJaThX5jkNBf5tSxn1ScZcRPPsDME2IR/ZlRmfZ5skf1F9ys3kqcGojS tgIqWrjggMq8nIjm6n2JYCCA2F6r X-Received: by 10.84.244.2 with SMTP id g2mr42202898pll.170.1511881174511; Tue, 28 Nov 2017 06:59:34 -0800 (PST) Received: from blackbox.Home (187-177-61-29.dynamic.axtel.net. [187.177.61.29]) by smtp.gmail.com with ESMTPSA id 125sm50304756pff.14.2017.11.28.06.59.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 06:59:33 -0800 (PST) From: =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= To: openembedded-core@lists.openembedded.org Date: Tue, 28 Nov 2017 08:59:28 -0600 Message-Id: <20171128145928.5784-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] [PATCHv2] 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 Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
--- ...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..13b997c037 --- /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://github.com/Igalia/piglit/commit/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"