Gentoo Archives: gentoo-commits

From: "Matt Turner (mattst88)" <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/mesa/files: mesa-10.3.7-dont-use-clrsb.patch
Date: Tue, 03 Feb 2015 21:43:30
Message-Id: 20150203214326.3F0F410FE0@oystercatcher.gentoo.org
1 mattst88 15/02/03 21:43:26
2
3 Added: mesa-10.3.7-dont-use-clrsb.patch
4 Log:
5 Version bump to 10.4.3. Fix bugs 536916 and 538086.
6
7 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 974CA72A)
8
9 Revision Changes Path
10 1.1 media-libs/mesa/files/mesa-10.3.7-dont-use-clrsb.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/files/mesa-10.3.7-dont-use-clrsb.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/files/mesa-10.3.7-dont-use-clrsb.patch?rev=1.1&content-type=text/plain
14
15 Index: mesa-10.3.7-dont-use-clrsb.patch
16 ===================================================================
17 From 32e98e8ef06f0bb6ad55f9fb5858be77c03367b0 Mon Sep 17 00:00:00 2001
18 From: Matt Turner <mattst88@×××××.com>
19 Date: Mon, 2 Feb 2015 17:26:49 -0800
20 Subject: [PATCH] gallium/util: Don't use __builtin_clrsb in util_last_bit().
21
22 Unclear circumstances lead to undefined symbols on x86.
23
24 Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=536916
25 Cc: mesa-stable@×××××××××××××××××.org
26 Reviewed-by: Ilia Mirkin <imirkin@××××××××.edu>
27 ---
28 src/gallium/auxiliary/util/u_math.h | 4 ----
29 1 file changed, 4 deletions(-)
30
31 diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
32 index 19c7343..ca6d0f1 100644
33 --- a/src/gallium/auxiliary/util/u_math.h
34 +++ b/src/gallium/auxiliary/util/u_math.h
35 @@ -561,14 +561,10 @@ util_last_bit(unsigned u)
36 static INLINE unsigned
37 util_last_bit_signed(int i)
38 {
39 -#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 407) && !defined(__INTEL_COMPILER)
40 - return 31 - __builtin_clrsb(i);
41 -#else
42 if (i >= 0)
43 return util_last_bit(i);
44 else
45 return util_last_bit(~(unsigned)i);
46 -#endif
47 }
48
49 /* Destructively loop over all of the bits in a mask as in:
50 --
51 2.0.4