From patchwork Wed Feb 25 14:28:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 5880451 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8FF71BF440 for ; Wed, 25 Feb 2015 14:28:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A4DEE2038E for ; Wed, 25 Feb 2015 14:28:36 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1D60F2038A for ; Wed, 25 Feb 2015 14:28:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 306346E668; Wed, 25 Feb 2015 06:28:34 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B7A86E667 for ; Wed, 25 Feb 2015 06:28:32 -0800 (PST) Received: by wghl18 with SMTP id l18so3977892wgh.7 for ; Wed, 25 Feb 2015 06:28:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dTs0g7MsS5/J53eF3sqme4LlhAlJOjS+mPEsdigfBCc=; b=vjvedv+pYx3NjgsBXUoDgv4YN556qK0tD/sAJiQThQVV+++4nT2wPXHpGyGLHSx9dN Pz1yjICqz49BQF6Bb8FnNWVXIQWl2BhPzR8xOQrWjTnIoUwlDYIiT3bFganDZcwS3lIc IpkZTj8aDZjKKLEiaN5PkMuyctWwLgPN/+J1+bhP75JuYidCIvNxDoyZUkcqI55FuhNO 94/HqxTJh1IimaDhBrYu9hR0ukPkvqA025EaYxqiO9iDT957KghSW3hcYmDgFbSwJAqu FIQX7OjRYQ+JZRFWbBOxekn1uKSyo1nn2HeYNrZxOHuTfmgrNZzPEBo9Gmh/2oypmUp6 8Xaw== X-Received: by 10.180.85.103 with SMTP id g7mr39851329wiz.19.1424874512044; Wed, 25 Feb 2015 06:28:32 -0800 (PST) Received: from arch-laptop.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id m9sm25340446wiz.24.2015.02.25.06.28.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 06:28:31 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 2/5] configure: omap, freedreno and tegra require atomics Date: Wed, 25 Feb 2015 14:28:13 +0000 Message-Id: <1424874496-13540-2-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1424874496-13540-1-git-send-email-emil.l.velikov@gmail.com> References: <1424874496-13540-1-git-send-email-emil.l.velikov@gmail.com> Cc: Thierry Reding , emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY,URIBL_BLACK autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP They have used them since day one, but the check was never there. Cc: Rob Clark Cc: Thierry Reding Signed-off-by: Emil Velikov --- configure.ac | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8afee83..ac1bf8f 100644 --- a/configure.ac +++ b/configure.ac @@ -214,7 +214,12 @@ if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 1, [Enable if you have libatomic-ops-dev installed]) fi -if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno"; then +if test "x$INTEL" != "xno" -o \ + "x$RADEON" != "xno" -o \ + "x$NOUVEAU" != "xno" -o \ + "x$OMAP" != "xno" -o \ + "x$FREEDRENO" != "xno" -o \ + "x$TEGRA" != "xno"; then if test "x$drm_cv_atomic_primitives" = "xnone"; then if test "x$INTEL" != "xauto"; then if test "x$INTEL" != "xno"; then @@ -240,6 +245,15 @@ if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno"; then AC_MSG_WARN([Disabling libdrm_nouveau. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package.]) NOUVEAU=no fi + if test "x$OMAP" != "xauto"; then + AC_MSG_ERROR([libdrm_omap depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package, or, failing both of those, disable support for OMAP GPUs by passing --disable-omap-experimental-api to ./configure]) + fi + if test "x$FREEDRENO" != "xauto"; then + AC_MSG_ERROR([libdrm_freedreno depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package, or, failing both of those, disable support for QCOM's Adreno GPUs by passing --disable-freedreno-experimental-api to ./configure]) + fi + if test "x$TEGRA" != "xauto"; then + AC_MSG_ERROR([libdrm_tegra depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package, or, failing both of those, disable support for NVIDIA's Tegra GPUs by passing --disable-tegra-experimental-api to ./configure]) + fi else if test "x$INTEL" != "xno"; then case $host_cpu in