From patchwork Wed May 17 23:00:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 100019 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp452875qge; Wed, 17 May 2017 16:01:30 -0700 (PDT) X-Received: by 10.99.44.9 with SMTP id s9mr1075557pgs.72.1495062090650; Wed, 17 May 2017 16:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495062090; cv=none; d=google.com; s=arc-20160816; b=N5lj7dpc+TbfYAJav38T1pI3JvhlQOnssJwF5d8Pie1QUdusRYkD8q1Jn3WH5qINzM QxBG+mPorw+/9PzVRPhjMGUMqewNo2HpFNU8rTGe79I5q/YwWfRtMwBl4Ff7ODNXechl /I7GiiQE6R68bISiZc4aTPwS3/vOrCgmMFTwSsEGecNZqp4ZDjNoWSj+K+NkdWVxA86+ M14166+Afz28voUE3G0f9Lx1bF0latvWi48g4xas0R8f1hHM5GkVSpiF/CAOX3uQbf7i rcnHchWYySc6vPA8EUJ7JVZrD919rFY+J2/ZFVi01MSafRQMsy47AsAUcO5KQK/U1NYt qTdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=kw0GrHLzkA29RgF4qfB1s+6LijxMHKUclFa29dgq5lY=; b=DqV1Lk/Usy/TyYNPJeYSauG/uzRuhqVNTYguiYuagNHAfvWp4SZGewT58bsr5ufJp6 Dt8WcRmV0Nr/j7Qj61Hv/pDBYLSzpsYyKBjJJRUPirDBJMCx0xEn9nfwjYZHzNMkK9yx 6Gb+W65TLtvk7Wyv6U6D61OD4Ad7nQr4bnN/Wsv2fffRPbJgfEaSt8LGIkMICKrTby81 ay+xfic4LwUNTX9+SCCMrKxsqD7NmkL3gUOqE1sbe6w71VcOnx3jOtJ03+hAJYGILWOk 2y+tbuRH7ojhEsebiw1Pv3xqAGhTO4gyDBlcxuOaVdQbzaaIIroR6QOO8m+jZGaR7K2s bmbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=piglit-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id w20si3268289pgj.290.2017.05.17.16.01.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 May 2017 16:01:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=piglit-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D90789C98; Wed, 17 May 2017 23:00:59 +0000 (UTC) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0EDC689C98 for ; Wed, 17 May 2017 23:00:59 +0000 (UTC) Received: by mail-oi0-x236.google.com with SMTP id w10so34263222oif.0 for ; Wed, 17 May 2017 16:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W4ulOqOyJ4EMTBrZ/xPMlCpC2/ijgQYNFgawg6hLMkc=; b=hMTQWuJ2FUEiwEkd61mVkb3jY1aDvnbWSNfPjNrArI0T0PcA19UB1oNwJvWzsNu6nD NG8Bn1bqRQsVIwMceIuDzNXpd64NooKWQXz04GtnpHe+iWQuQBzC7HBHzUh1VKBuRBUi BhlxF8q7D/qX6G90SD7/wlfWrHiXj7z+4lLik= 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=W4ulOqOyJ4EMTBrZ/xPMlCpC2/ijgQYNFgawg6hLMkc=; b=BnrlpY419XrzF8OjuDMfSXTNgCoxFRF2d8B7PnWtlxU1w9C/0MVvoCAgXstdXzi2Od ilQ/62qPYK6wuqDGyZ1gWpqOyClgEY0OKY/gq2rdUo7cMUuZ3IlLtNqq1aTkQjFE155O rl5OROHMGqLK4vifZ0lnskr3MQyuxtqxmKHuFgjWOs732IaAdxESDCYAF365Ngu012Jn Ump7X1WpKQ5NFtBF8jBUxtQkKXJ2py2BcF8nrXIhzbKrggDjK/MZF36y/4Z76KgpDs3s uj0N2i1xbY8PQjNePGma/dC/hlCYZJvRE+wo0sX1fPeDudRzYnzfehh82zB7LJ/VDvtk bv5A== X-Gm-Message-State: AODbwcDfx1zxHwOSlLjRziC8YfWamZmTtGCwnYN7pFqTxGnXZvyd8vji 4ScdRZyxe7BOp6ao X-Received: by 10.157.13.23 with SMTP id 23mr730148oti.5.1495062058235; Wed, 17 May 2017 16:00:58 -0700 (PDT) Received: from aura.cortijodelrio.net (CableLink67-82.telefonia.InterCable.net. [201.172.67.82]) by smtp.googlemail.com with ESMTPSA id c50sm1784149ote.29.2017.05.17.16.00.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 16:00:57 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: piglit@lists.freedesktop.org Date: Wed, 17 May 2017 18:00:15 -0500 Message-Id: <1495062017-6955-1-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Cc: emil.l.velikov@gmail.com Subject: [Piglit] [PATCH 1/3] util/egl: Honour Surfaceless MESA in get_default_display X-BeenThere: piglit@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: piglit-bounces@lists.freedesktop.org Sender: "Piglit" Signed-off-by: Daniel Díaz --- tests/util/piglit-util-egl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/util/piglit-util-egl.c b/tests/util/piglit-util-egl.c index 106c735..389fe12 100644 --- a/tests/util/piglit-util-egl.c +++ b/tests/util/piglit-util-egl.c @@ -85,6 +85,7 @@ piglit_egl_get_default_display(EGLenum platform) static bool has_x11 = false; static bool has_wayland = false; static bool has_gbm = false; + static bool has_surfaceless_mesa = false; static EGLDisplay (*peglGetPlatformDisplayEXT)(EGLenum platform, void *native_display, const EGLint *attrib_list); @@ -99,6 +100,7 @@ piglit_egl_get_default_display(EGLenum platform) has_x11 = piglit_is_egl_extension_supported(EGL_NO_DISPLAY, "EGL_EXT_platform_x11"); has_wayland = piglit_is_egl_extension_supported(EGL_NO_DISPLAY, "EGL_EXT_platform_wayland"); has_gbm = piglit_is_egl_extension_supported(EGL_NO_DISPLAY, "EGL_EXT_platform_gbm"); + has_surfaceless_mesa = piglit_is_egl_extension_supported(EGL_NO_DISPLAY, "EGL_MESA_platform_surfaceless"); peglGetPlatformDisplayEXT = (void*) eglGetProcAddress("eglGetPlatformDisplayEXT"); } @@ -123,6 +125,11 @@ piglit_egl_get_default_display(EGLenum platform) return EGL_NO_DISPLAY; } break; + case EGL_PLATFORM_SURFACELESS_MESA: + if (!has_surfaceless_mesa) { + return EGL_NO_DISPLAY; + } + break; default: fprintf(stderr, "%s: unrecognized platform %#x\n", __func__, platform); return EGL_NO_DISPLAY; From patchwork Wed May 17 23:00:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 100020 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp452906qge; Wed, 17 May 2017 16:01:34 -0700 (PDT) X-Received: by 10.98.32.18 with SMTP id g18mr1022020pfg.153.1495062094360; Wed, 17 May 2017 16:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495062094; cv=none; d=google.com; s=arc-20160816; b=ek5Yh0o2GGUs3HtG09/bbQwjL/YiSg3mBjoAMKptqCsxhoNK0luK2B8g/riB7RZ8YA LWlKJYGZ3SYzh/d/1tedgRdXEcxcKuIAidQIPkqPtP+hu7gersh6dC8d9Fb7kRX7ahzm 4hcvn7Zc7+9tqPZ9JWAK+zVEOGpLKOKBH2wB1DNcz2bHD+jRlv8KkbbLwU4NUgj5kWpa nVI4ZNnZUp3ovZzXQtD9H19b8A9HXCCPoBUWARCmckk9tg+DFW87a8fgsWrTzkN2wrap WQsvo4LjzHGixAbxPT0tbyl0ZBkiYqH3aNY9zh0h7evsq2/O3xX1wkKfErdw5bZwy5ss Tsgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=xB8ylHmAVz064WS+dsEhKEVOSnnL6Gm4yVteCSIcG1k=; b=nrulR4WgTeC3WOfJpfL6k/8zKKZXx4R2UwFrRfzS1kZ1DahVTt/HhzXZizbiCBR2/1 yFzLkvNB4FwBjBTii0AfaC1a4aTOa1A3bol6C8rYXVU6q7BLEZ67WlGQWSacPAK0Be7u bWsM3so7K1+xoLm+KQ6Lcnk3aRadqt2/STUAVtWlnsQDSfKyoqLrXq3l8npoUWYuZKaq aDiMdvdQMVdUKOu3zbSZwjq2YZUZqwQBic5EO/BAeC27OflvxpfQBV93HFlExken47fB 6IEyCGaNrUww92mQa2o88yjvq8Np5f3PA/mAWTRqMqeM3qgwUTQTp6E3vNtIfMDj6uax s7lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=piglit-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id d62si3297661pga.183.2017.05.17.16.01.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 May 2017 16:01:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=piglit-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D8A3189CAC; Wed, 17 May 2017 23:01:03 +0000 (UTC) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 573E789CAC for ; Wed, 17 May 2017 23:01:02 +0000 (UTC) Received: by mail-oi0-x22e.google.com with SMTP id h4so34098998oib.3 for ; Wed, 17 May 2017 16:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bzmGCPw0o1yl/+q4D3TE2wBUJk5vA9nqHMUiJnRPwLM=; b=CuWjb/2YOOFLnlHaQOBxbGWw7BEia6NP+352pAwGwA2nhTCd/riyM+i/0PST9YO7N0 PO6sWeiJaW/YZly3NTPYu/VE38fNKT/Ac0RcJ4k3aBhVQQGlDKfoXVl3D8sPTjsaNtYv MedwWfDE4Uv9Tugze50xcPPer98x5VPqvIGo4= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=bzmGCPw0o1yl/+q4D3TE2wBUJk5vA9nqHMUiJnRPwLM=; b=MTG4ieghQJpfEJ4WQ7J1xzoGelcr4govHPQd8ksnomdg7MhID8pPN5ehEBTlGePBsC BTVsmezWnu2EixKd4FnrqtCgZ7crYHTyK6ksVEvEJ1edthKqKZpZuuc2eEAMbUh0ahJe O/PCG7dMF+RazjN93phHYXBhH/RhUmXjPjtD5Ail4d6maLcdAM7CDVJQqo8D8Ulnbswd ejB9henAj9AeFUFvGwXQKWHjCRJyu6LgNvDnVJXENmy9oJmG0NhsQgK20LkFtQpqoRO7 Jb90V4YQEogboWGav3xnF4LYYUt+0zWIvLexEmsJU5zxAwJPWJsg5+7zhw1lj1hpVyfa vxkg== X-Gm-Message-State: AODbwcAAVOaA8Br8EpB6mU3oRQzuj7iryUzMlNPkIhmJtv8/rkdTvOgX b/jfLJLpbtsRjvVb+6WMfg== X-Received: by 10.157.43.210 with SMTP id u76mr861512ota.223.1495062061437; Wed, 17 May 2017 16:01:01 -0700 (PDT) Received: from aura.cortijodelrio.net (CableLink67-82.telefonia.InterCable.net. [201.172.67.82]) by smtp.googlemail.com with ESMTPSA id c50sm1784149ote.29.2017.05.17.16.01.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 16:01:00 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: piglit@lists.freedesktop.org Date: Wed, 17 May 2017 18:00:16 -0500 Message-Id: <1495062017-6955-2-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495062017-6955-1-git-send-email-daniel.diaz@linaro.org> References: <1495062017-6955-1-git-send-email-daniel.diaz@linaro.org> MIME-Version: 1.0 Cc: emil.l.velikov@gmail.com Subject: [Piglit] [PATCH 2/3] egl_mesa_platform_surfaceless: Don't use eglGetPlatformDisplay directly X-BeenThere: piglit@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: piglit-bounces@lists.freedesktop.org Sender: "Piglit" Signed-off-by: Daniel Díaz --- .../spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c index 3bbd6aa..81a3919 100644 --- a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c +++ b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c @@ -31,7 +31,7 @@ test_setup(EGLDisplay *dpy) piglit_require_egl_extension(EGL_NO_DISPLAY, "EGL_MESA_platform_surfaceless"); - *dpy = eglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA, NULL, NULL); + *dpy = piglit_egl_get_default_display(EGL_PLATFORM_SURFACELESS_MESA); if (*dpy == EGL_NO_DISPLAY) { printf("failed to get EGLDisplay\n"); piglit_report_result(PIGLIT_SKIP); From patchwork Wed May 17 23:00:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 100018 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp452651qge; Wed, 17 May 2017 16:01:06 -0700 (PDT) X-Received: by 10.84.216.30 with SMTP id m30mr1076257pli.161.1495062066366; Wed, 17 May 2017 16:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495062066; cv=none; d=google.com; s=arc-20160816; b=NVn7Lg3BmsaVNHr3i2HWFiNvqPUFyvEparptxbO9GEkYEvdCucccQEd0f+pzSsJtbh s2VBA6NIMn9ADXsHECbkpCq+soSpB6WKwlEpELMvtHbbaBQH3VJDTdAku/1DlybSF/K2 zXANY295G86lRCJl1agWyn2y7Wg5q8Ic9JonlI7RyPoJX8AnqEL90hciw3oiM6KTsPCX VZ0A6zQEFHlAhpF3Irwk7jMs/OmfFEIaB0WzjI5AliARtvf/otoEwBYxel1H+fAmVqWt CNmDEitO11pVa3h3XTnmvq+03HOXNG0X+bcahrcbjTE1PZSe1IqGsukUmI3oZbTybRh6 DOyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=UX64iZPGk52Tlv6jNlOib2WoqSc68Cu4aVYwezp9EcM=; b=hAarl7jyrkEn9V+2FdbQ4jljyyJ1wLkpkdvejIdqb2neOAdI5it7A0+t1fwVUnH6Mo MFOr3PYOxoHDnCPPLEXOEpp/4LAVx2+La/de4tKE63Wq0JoNN00JnMVQSdNJ/MhmC6lW Eks43MtCAnT6ftDP6+G5AI/SKSPppz8SX3IJ2D3Dwqs1WGZx1TSp0y2D9n2t810Fd+tr ZjK9Q2lrtL8IdfAzwZKcwR8T8+QRZ/gWaC1BZJSoNU5bSPPrEaFanX4iJyrd5w+xvtr+ 8/D8HWmoPd46Gi/Hq9tiYArcWAEfbQe9NhQs9wrBadkxsjJlEgDNBNkhSlxTHRD38Mux 6hVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=piglit-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id z5si3278733pge.418.2017.05.17.16.01.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 May 2017 16:01:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=piglit-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A750189D30; Wed, 17 May 2017 23:01:05 +0000 (UTC) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from mail-oi0-x229.google.com (mail-oi0-x229.google.com [IPv6:2607:f8b0:4003:c06::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5621589D49 for ; Wed, 17 May 2017 23:01:04 +0000 (UTC) Received: by mail-oi0-x229.google.com with SMTP id w10so34265360oif.0 for ; Wed, 17 May 2017 16:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DNTMHJCr9FJTDVsB8tOeqVaDURMLbSBb4dFtkdHehy4=; b=dzw+Hb7otlzLXEnZy+ycF36khlCLFBj58vfYs2CYSapqvodIQN8GLaYliQnrUTVGHH sDYc0kUGv8y4/6X11IB+Aw8CPVxAvToje2IQnyDlDkAAYpF/Qrv2iIzDgbwns8JZotcL nPV2CbWNIwmCvDcC4XPX3yCiLyj+GCPz+pF8E= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=DNTMHJCr9FJTDVsB8tOeqVaDURMLbSBb4dFtkdHehy4=; b=mdqXn247bKRYz3aai9KeAp2bZ39qXJiH1DsyRXOCNLiph9CrSheuhEloifQrSsOekC W67fNmxpglv/fEbDJq4cFpd15esyH4a/DVSVqbp8QP5b+rn6tnezojvics60aub0y/Wv vQk+YIIyLYsM+/AyMAGOXq5byOCfksgdwKY6gDu8JR5wGJDrT3eRxz+EagCA1fETv2Em Ef4N/79dJfD06l8Yfz02AGR2oL3gcympWPSyP4rQTknpz1rVZ6FO3dxU9uwnrb1P5mQl YkkFngrM+TWt/1qXbPy8LWn37gn7bTsZpqbwPRnpDSHzyGIzG7/CVE2wx4j2C2pIFI5k hhrw== X-Gm-Message-State: AODbwcAmvNlCLQsKP/+Xd/PP9Pf6mwV1HMpv3OH74ALE46U7PT5jFint Fz1IDzRwLG+uFhD/0WzIyA== X-Received: by 10.157.82.95 with SMTP id q31mr835235otg.165.1495062063475; Wed, 17 May 2017 16:01:03 -0700 (PDT) Received: from aura.cortijodelrio.net (CableLink67-82.telefonia.InterCable.net. [201.172.67.82]) by smtp.googlemail.com with ESMTPSA id c50sm1784149ote.29.2017.05.17.16.01.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 16:01:02 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: piglit@lists.freedesktop.org Date: Wed, 17 May 2017 18:00:17 -0500 Message-Id: <1495062017-6955-3-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495062017-6955-1-git-send-email-daniel.diaz@linaro.org> References: <1495062017-6955-1-git-send-email-daniel.diaz@linaro.org> MIME-Version: 1.0 Cc: emil.l.velikov@gmail.com Subject: [Piglit] [PATCH 3/3] egl_mesa_platform_surfaceless: Use EXT functions for surfaces X-BeenThere: piglit@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: piglit-bounces@lists.freedesktop.org Sender: "Piglit" These EXT symbols are guaranteed to exist since they require EGL_EXT_platform_base. Signed-off-by: Daniel Díaz --- .../egl_mesa_platform_surfaceless.c | 23 ++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c index 81a3919..264ed71 100644 --- a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c +++ b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c @@ -24,6 +24,24 @@ #include "piglit-util.h" #include "piglit-util-egl.h" +/* Extension function pointers. + * + * Use prefix 'pegl' (piglit egl) instead of 'egl' to avoid collisions with + * prototypes in eglext.h. */ +EGLSurface (*peglCreatePlatformPixmapSurfaceEXT)(EGLDisplay display, EGLConfig config, + NativePixmapType native_pixmap, const EGLint *attrib_list); +EGLSurface (*peglCreatePlatformWindowSurfaceEXT)(EGLDisplay display, EGLConfig config, + NativeWindowType native_window, const EGLint *attrib_list); + +static void +init_egl_extension_funcs(void) +{ + peglCreatePlatformPixmapSurfaceEXT = (void*) + eglGetProcAddress("eglCreatePlatformPixmapSurfaceEXT"); + peglCreatePlatformWindowSurfaceEXT = (void*) + eglGetProcAddress("eglCreatePlatformWindowSurfaceEXT"); +} + static void test_setup(EGLDisplay *dpy) { @@ -72,7 +90,7 @@ test_create_window(void *test_data) test_setup(&dpy); - surf = eglCreatePlatformWindowSurface(dpy, EGL_NO_CONFIG_KHR, + surf = peglCreatePlatformWindowSurfaceEXT(dpy, EGL_NO_CONFIG_KHR, /*native_window*/ NULL, /*attrib_list*/ NULL); if (surf) { @@ -103,7 +121,7 @@ test_create_pixmap(void *test_data) test_setup(&dpy); - surf = eglCreatePlatformPixmapSurface(dpy, EGL_NO_CONFIG_KHR, + surf = peglCreatePlatformPixmapSurfaceEXT(dpy, EGL_NO_CONFIG_KHR, /*native_window*/ NULL, /*attrib_list*/ NULL); if (surf) { @@ -205,6 +223,7 @@ main(int argc, char **argv) piglit_report_result(PIGLIT_FAIL); } + init_egl_extension_funcs(); result = piglit_run_selected_subtests(subtests, selected_names, num_selected, result); piglit_report_result(result);