From patchwork Fri Nov 24 16:52:03 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: 119624 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2472296qgn; Fri, 24 Nov 2017 08:52:15 -0800 (PST) X-Google-Smtp-Source: AGs4zMaVPiSSl9zuXZENLRQAYGTN5ojhYg0uYSortIVTpzKWjP9rlrGF9azkB6pIY3E076sYkMJ2 X-Received: by 10.99.172.25 with SMTP id v25mr27936906pge.182.1511542335500; Fri, 24 Nov 2017 08:52:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511542335; cv=none; d=google.com; s=arc-20160816; b=wlGYotV1piJ+UmqfVfL6pEP354o5jl/GouMWfTs6XvnwvZwX7hwvp+DLpaPYvSLIK/ GU3+J+raF5q38N+6szmjlZTQ1Wq457EHYdN6f0zugILqVFqjpT3HLM3HTxivrNLJKWTK 9FtVKjSa8JLesBGTV3yDeXvkUWeBmUFDghgVm03wFe3SIwhXQ7B2ME1I3mk6LrxLTeEE rQ5vJpFOwQlDn1IwnMDpntsut0b4YokI1kr8u28O2gXQpwYya4uYbg2w6cdQnq/Rf2KA ALVVJ2m9rnQMs75U4nLVzAr1p5l5mowQ78GL62Dl3fXxTA+j1lOmjfrmPDL7iQF2iL2F iEPw== 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=spyVYVkSGK9f3rZamZDMDgif0ZcphY7LM1WSauUQYkE=; b=wVZpapsVxupQapHP8wPXRnpBTevehq6Rb+KcOvq7F+MoAbhCR4q8lf7dlHK4m7HjX/ Fc0DmXcTHBHph0QUhQdcNSNAhQQ3caV2+EUZ+GLOjejbnLNprRp3MgArHa43vci+zBUO mz5o1GcHJwQwst65AZm3Y7ezZdYABsFCYuSLbfCqCwsmRjefn/Pqn+QqCzsUuCvSndJW 8OjVpA0xImEK8mKtUI8hRB/l3JIHZlsWrURLC4+CXE5sbWOVSVxVWNgKpAQVp+QPntpS +io7mW62gHeCObD9tpip8VbnwGMMGhYmIfpEXSP9ypPPHs8T1EaRSq3CeJ8vfHDFE211 5eVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=i+1ndp7y; 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 s28si11780610pgo.597.2017.11.24.08.52.14; Fri, 24 Nov 2017 08:52:15 -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=i+1ndp7y; 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 BE7A66011A; Fri, 24 Nov 2017 16:52:08 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-oi0-f66.google.com (mail-oi0-f66.google.com [209.85.218.66]) by mail.openembedded.org (Postfix) with ESMTP id 33C8D6011A for ; Fri, 24 Nov 2017 16:52:06 +0000 (UTC) Received: by mail-oi0-f66.google.com with SMTP id e142so15440631oih.2 for ; Fri, 24 Nov 2017 08:52:08 -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=8/auwI34rWxEGGSMzKyv5LfSlFfGq0y5be+ObSFKXZY=; b=i+1ndp7yLH7bdtFU3Si6PKEdX7+D3B+ae7lwXGM2X6DFRrAGuiJKPp8aS6njytJi1R uhZW98w8OPyoVdF4Ga3iZ+JXBvLJHBV93Mrq+h4y0MV0/OdlfE/k1esOIaoNC4pqFAV3 Sup4t1/CsHWXowKy6jnI5vj+c6Z6McouHqAFEwr1thpdGpo3Y9/YPwjWr7xXeVBLbBue ln8bnuk1BKHI5iSSwF9ujBZqFULdpA5aWtsW/LAcsYjFc0goZgrzArPPn8r/RSLLDh6u GjhevAHL6ah/M+bKSHwd4aW14U9rfXAsCm+GsPL+nYRmJjflvXNtY0g0R+f74METXapq uRsQ== 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=8/auwI34rWxEGGSMzKyv5LfSlFfGq0y5be+ObSFKXZY=; b=MG15H+fXaxLG11/M6pJIO+Ki7nXNMTyHAo6y3izLthsKsvYsTZCHkDi/rUKGDV/zsQ eDMlzcNCL7yNNKdmz9PsS7easjZdyTnu5ZBcVraQrnPFse5vtjlTzG1vSJkfoJglYi0x YMifnZGeS2mHEcRRy61DAa+O9bpHEcMMVJWjlUcM6NwlXP+SmyPq8oMkR+7HrdjAr4tt ozpG80/egypozx4i1tOEk2aXKmRYlk2gx5LRdlIndxMICOR3U/KO76mR7I2B8ZCv/WwQ zuE3fxZWYensBQxgkzyRRPJcuyll0nY9y8NIjdHreK535ENskeMhu/euf8TbXjdrckLE X0gg== X-Gm-Message-State: AJaThX4x5hAVyV7Af2/JsBK05KJNQW+WKI0a0yMHZwphkkJ54kMp0N51 AMalSw2CXmd7QI/7kJkCkX3+xKoz X-Received: by 10.202.57.66 with SMTP id g63mr17538166oia.346.1511542327500; Fri, 24 Nov 2017 08:52:07 -0800 (PST) Received: from blackbox.Home (187-177-61-29.dynamic.axtel.net. [187.177.61.29]) by smtp.gmail.com with ESMTPSA id f62sm990762oic.44.2017.11.24.08.52.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Nov 2017 08:52:06 -0800 (PST) From: =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= To: openembedded-core@lists.openembedded.org Date: Fri, 24 Nov 2017 10:52:03 -0600 Message-Id: <20171124165203.11759-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] [PATCH] recipes-graphics/piglit: Add patch for fix build in HiKey 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 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. 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 | 39 ++++++++++++++++++++++ meta/recipes-graphics/piglit/piglit_git.bb | 1 + 2 files changed, 40 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..6b73950fc1 --- /dev/null +++ b/meta/recipes-graphics/piglit/piglit/0001-tests-egl-egl-context-priority.c-Use-piglit_egl_get_.patch @@ -0,0 +1,39 @@ +From 3b6c3abe3698abb0ae08d14a399eea29805cafd6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= +Date: Fri, 24 Nov 2017 10:11:42 -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 + +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 +Signed-off-by: Daniel Díaz + +Upstream-Status: Submitted [piglit@lists.freedesktop.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 + diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb index eae3eed342..c6d4e5c6e0 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 \ " # From 2017-02-06