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;