From patchwork Thu Apr 17 16:04:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 339970 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 7D6481400AC for ; Fri, 18 Apr 2014 02:04:54 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 80C0B934DA; Thu, 17 Apr 2014 16:04:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qv5rD6lOuf2O; Thu, 17 Apr 2014 16:04:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id F14FC934F9; Thu, 17 Apr 2014 16:04:48 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 213001CE71D for ; Thu, 17 Apr 2014 16:04:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 229708BEA3 for ; Thu, 17 Apr 2014 16:04:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w1ARAXUF5b8N for ; Thu, 17 Apr 2014 16:04:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 77F9B8BD26 for ; Thu, 17 Apr 2014 16:04:41 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id q5so1051997wiv.7 for ; Thu, 17 Apr 2014 09:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=veA/YFLLO6EixUkTKc4v9CaApfgfxc4/uWHs9KKM5nE=; b=oo1tkPpBYcuPoBMq8tXafq/19kWH2ZVeowBHah5BV5LWMYroLzBF/DbG8mh1NVJ1/E blSplkp+ZndXuQv9oXTLwiMM0GWWIBXhiQX6LWEBavYhA9xIZ2WfST64hjC+FfQ4EvVX bUvGavBHAH11vGhIrtZJM1zyIho4zaVHoLL6z02Qfxor4VTM6A2nGEpHQ9On22gQ65wJ 8AWzlt+P6zG5gqfPM4MS3e3ZEuX0rTTS59rVMP5FGbdq3fZBR4FymtcBwvkCjj+VXbub J53/NEym3FDUo2VOJks4vsJ6Ont8614CAaH6GZTd0X7p2ip7tQP+evUCFAenoyAbkwxX Sl3g== X-Received: by 10.194.203.170 with SMTP id kr10mr12786792wjc.19.1397750679724; Thu, 17 Apr 2014 09:04:39 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id r4sm39573184wjz.28.2014.04.17.09.04.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Apr 2014 09:04:38 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Thu, 17 Apr 2014 18:04:20 +0200 Message-Id: X-Mailer: git-send-email 1.8.3.2 In-Reply-To: References: Cc: Paul Cercueil , Bernd Kuhls , "Yann E. MORIN" Subject: [Buildroot] [PATCH 08/14] package/mesa3d: only enable full OpenGL when a DRI driver is enabled X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: "Yann E. MORIN" Full OpenGL is only provided when: - a DRI driver is enabled, - and X.Org is enabled Since DRI driver depend on X.Org being selected, this means that we can (have to) enable full OpenGL as soon as a DRI driver is enabled. On the other hand, Gallium drivers, which currently do enable full OpenGL, only really provide OpenGL EGL and GLES, not full OpenGL. So we exclude Gallium drivers when checking whether to enable full OpenGL in mesa3d. Signed-off-by: "Yann E. MORIN" Cc: Paul Cercueil Cc: Bernd Kuhls --- package/mesa3d/mesa3d.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk index 0d41efa..db166f8 100644 --- a/package/mesa3d/mesa3d.mk +++ b/package/mesa3d/mesa3d.mk @@ -80,9 +80,9 @@ endif # APIs -# At least one API is required, for buildroot enable OpenGL API by default. -# Other APIs (EGL, EGL_ES) are optional -ifeq ($(BR2_PACKAGE_MESA3D_DRIVER),y) +# Full OpenGL is provided by DRI drivers with X.Org; DRI drivers are only +# enabled when X.Org is enabled anyway, so no need to check for X.Org here. +ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y) MESA3D_CONF_OPT += --enable-opengl else MESA3D_CONF_OPT += --disable-opengl