From patchwork Tue Nov 28 15:12:48 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: 119885 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1835758qgn; Tue, 28 Nov 2017 07:12:56 -0800 (PST) X-Google-Smtp-Source: AGs4zMYkXXz7y7bjiD/wUQppa8snyxL99ieev1iJVa3UWvkKO8AJZUhqTFLJQVG2SCZIGxYsbgmC X-Received: by 10.159.198.9 with SMTP id f9mr42779912plo.74.1511881975894; Tue, 28 Nov 2017 07:12:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511881975; cv=none; d=google.com; s=arc-20160816; b=gE001mJPz90R9ntrwWHMaJHOxHte8yluRd8MGmuAzwonkWOTRBR1GaCnBxNKegVHN4 MkyHWHbJs7+pXX0sJS1O+cEMGFdFdmgEemWGjlXMm4zPp8cxHg+aiYB/6tXWhnqXWy73 Sbhvzq1LC3yYLaVJDdBffxqi6YuMiN7Wb/e2TUC66jVHQBSflo8ymEYx32lbkILKncib PiY2ScGL0vQO0HLP0lOfNOqWxLWGjth5CqgZ1tTx91TISQvjwxS0MMBATX6WQPF/OxV5 zsIJKcp8KxWwnzgGjt4em3FJNP7b64d2PUBQK5uhKNLwTVF8KfAn2NwA0alhlZqw8Cly lK9g== 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=ka9TBDhK2fiFlk1trhFpyJwblxFeKykhvyFUFJOKvw0=; b=WbFNDphid40busHvw4zWkVyO6DXOeP01ueUU8X5EjlWyBFEkMpIfNmIGDO/51q6h/H S0FfYvzWtDHrb56S4qDFYfkbHF3wU79MRrKBh7lDMR2EVZbWF8eJZbuL7o0DX5tGye3A 11xV/a+T4tSF8jClVXazcEKrdlBMp11OoVeAmzTw7mk6W9uvbiL1URqklZCCMjwt7haL ZDjDE9YrvMwXDG4idxxitVebriCz5ooRl9Z88k/1jO77e8FpNE8SB5PgOwnCZ7rNuj9T FqNreTEd/avz+ps9ggB7fGQzfUcEgpedA2VBppTMhEZdu+Zg2+mnJVfP7xLWDrUINt3D b9sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=UNPcA+1R; 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 q15si27306435pfl.112.2017.11.28.07.12.55; Tue, 28 Nov 2017 07:12:55 -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=UNPcA+1R; 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 82D0278093; Tue, 28 Nov 2017 15:12:52 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-ot0-f193.google.com (mail-ot0-f193.google.com [74.125.82.193]) by mail.openembedded.org (Postfix) with ESMTP id BF1387807D for ; Tue, 28 Nov 2017 15:12:51 +0000 (UTC) Received: by mail-ot0-f193.google.com with SMTP id q3so140727oth.2 for ; Tue, 28 Nov 2017 07:12:53 -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=YkhgFKpioqmvUmWzTGgJRT/eb3b+bopZ1Cd0F9D2Wgk=; b=UNPcA+1Rqp+//SmS1jEatvzAxHlSluHTwedK1KBkYueZ/aN81L/D553B3w27h9bxGf yQ3AlKsUbAK4VH9kJVm1wSnq1xp5EoFPdAgoZZhHcWLVW3MKnOvDPulUbSGgPsx7jRRx 35Bp63G+0Ss9G0pfxbRA/qPcpLuwb2KAiH8eQ4CMl5xHKNFe8E3f2RjKj0Omx9ZcOOcO 5H1O86aFKzYP0zFWYAdbz//UWVjUs95WeLHPq6P9qEsdfzKBWJPHD8+TIS5peh3R6IEc txV0KlwUZ+DdQWLmbK4KKCukoDI6HsWOj9UgGg9xqGrCf9E1/alEHIVDTAeWQSB9Ge84 M67A== 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=YkhgFKpioqmvUmWzTGgJRT/eb3b+bopZ1Cd0F9D2Wgk=; b=EUoWhkIuTaYdjpL73CgWW1u/Ynhd3OFO2n3hjNhjj1zhLcJukoy1r8+T/hJhw1i/2W bqIbypxJ/bcBPuUscghfkIBrX49OWlpElWcvXIxZIaXTe23YHbuaVNaMPzkBQSHybrdR tD0sEQiFfMHlcI8BO0gM6H9WlbXAx8yKhhvFOa+hLPLdSa1EP3Vf88OIoKc9Vopjn4Ec BL66sIqyKYMocSDFuD2Y7lso8VOxov7FXzqh+00xTs4C0sQDAI280BJk06/rVrqttUWf qFTxfnlRG15NQCFYivPLGJGlko943pd31Her2FaZ+d5S7znKgdj0yJIQWxRMrUHJKcRD PNsg== X-Gm-Message-State: AJaThX7XDZFeQhlAwk/qVOaOznDV9GiWiSWyiXAdwr1vv2PYscT+k6WZ S148iyQkfQAG4UjHTIs/pWFlHB0T X-Received: by 10.157.81.105 with SMTP id u38mr29606289oti.231.1511881972258; Tue, 28 Nov 2017 07:12:52 -0800 (PST) Received: from blackbox.Home (187-177-61-29.dynamic.axtel.net. [187.177.61.29]) by smtp.gmail.com with ESMTPSA id j3sm12231275oia.15.2017.11.28.07.12.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 07:12:51 -0800 (PST) From: =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= To: openembedded-core@lists.openembedded.org Date: Tue, 28 Nov 2017 09:12:48 -0600 Message-Id: <20171128151248.6601-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] [PATCHv3] 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..fbd60f23e7 --- /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"