From patchwork Thu Mar 11 15:40:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Michel_D=C3=A4nzer?= X-Patchwork-Id: 84933 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2BFfuJf006084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 11 Mar 2010 15:42:32 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NpkVO-0006rB-8R; Thu, 11 Mar 2010 15:40:58 +0000 Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NpkVM-0006r0-Th for dri-devel@lists.sourceforge.net; Thu, 11 Mar 2010 15:40:56 +0000 X-ACL-Warn: Received: from darkcity.gna.ch ([195.226.6.51] helo=mail.gna.ch) by sfi-mx-4.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NpkVK-0008O0-EU for dri-devel@lists.sourceforge.net; Thu, 11 Mar 2010 15:40:56 +0000 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 744691812D5; Thu, 11 Mar 2010 16:40:48 +0100 (CET) X-Virus-Scanned: amavisd-new at gna.ch Received: from mail.gna.ch ([127.0.0.1]) by localhost (gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tPSP9L0YYU21; Thu, 11 Mar 2010 16:40:47 +0100 (CET) Received: from thor.local (80-219-26-39.dclient.hispeed.ch [80.219.26.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 61CD414616F; Thu, 11 Mar 2010 16:40:46 +0100 (CET) Received: from daenzer by thor.local with local (Exim 4.71) (envelope-from ) id 1NpkVB-0000G0-Eg; Thu, 11 Mar 2010 16:40:45 +0100 Subject: Re: [PATCH 2/2] libdrm_radeon: Optimize cs_gem_reloc to do less looping. From: Michel =?ISO-8859-1?Q?D=E4nzer?= To: Pauli Nieminen In-Reply-To: <1268246540-16212-2-git-send-email-suokkos@gmail.com> References: <1268246540-16212-1-git-send-email-suokkos@gmail.com> <1268246540-16212-2-git-send-email-suokkos@gmail.com> Date: Thu, 11 Mar 2010 16:40:43 +0100 Message-ID: <1268322043.7444.680.camel@thor.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 X-Spam-Score: 0.2 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.2 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NpkVK-0008O0-EU Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.sourceforge.net X-BeenThere: dri-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 11 Mar 2010 15:42:32 +0000 (UTC) diff --git a/configure.ac b/configure.ac index fe00176..e419dd7 100644 --- a/configure.ac +++ b/configure.ac @@ -173,7 +173,7 @@ if test "x$HAVE_LIBUDEV" = xyes; then fi AM_CONDITIONAL(HAVE_LIBUDEV, [test "x$HAVE_LIBUDEV" = xyes]) -if test "x$INTEL" != "xno"; then +if test "x$INTEL" != "xno" || test "x$RADEON" != "xno"; then # Check for atomic intrinsics AC_CACHE_CHECK([for native atomic primitives], drm_cv_atomic_primitives, [ @@ -206,13 +206,23 @@ if test "x$INTEL" != "xno"; then fi if test "x$drm_cv_atomic_primitives" = "xnone"; then - if test "x$INTEL" != "xauto"; then + if test "x$INTEL" = "xyes"; then AC_MSG_ERROR([libdrm_intel 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 Intel GPUs by passing --disable-intel to ./configure]) else INTEL=no fi + if test "x$RADEON" = "xyes"; then + AC_MSG_ERROR([libdrm_radeon 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 Radeon GPUs by passing --disable-radeon to ./configure]) + else + RADEON=no + fi else - INTEL=yes + if test "x$INTEL" != "xno"; then + INTEL=yes + fi + if test "x$RADEON" != "xno"; then + RADEON=yes + fi fi fi