~pali/+junk/mesa-lts-saucy-packaging

« back to all changes in this revision

Viewing changes to debian/patches/120-hide-x86sse.patch

  • Committer: Pali Rohár
  • Date: 2014-04-11 10:59:06 UTC
  • Revision ID: pali.rohar@gmail.com-20140411105906-qk25ix27pd6rdho8
Import debian packaging for mesa-lts-saucy version 9.2.1-1ubuntu3~precise1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
See LP #1170074
 
2
 
 
3
The refresh of linking libgallium against dricore patch caused a conflict.
 
4
x86sse was taken from an earlier gallium implementation, but is no longer compatible.
 
5
Fortunately these symbols are not needed outside libdricore, so the entire
 
6
implementation can be hidden, forcing it to use the correct implementation in libgallium
 
7
and in libdricore.
 
8
 
 
9
diff --git a/src/mesa/x86/rtasm/x86sse.h b/src/mesa/x86/rtasm/x86sse.h
 
10
index f6282f5..35d8906 100644
 
11
--- a/src/mesa/x86/rtasm/x86sse.h
 
12
+++ b/src/mesa/x86/rtasm/x86sse.h
 
13
@@ -4,6 +4,8 @@
 
14
 
 
15
 #if defined(__i386__) || defined(__386__)
 
16
 
 
17
+#pragma GCC visibility push(internal)
 
18
+
 
19
 /* It is up to the caller to ensure that instructions issued are
 
20
  * suitable for the host cpu.  There are no checks made in this module
 
21
  * for mmx/sse/sse2 support on the cpu.
 
22
@@ -252,5 +254,7 @@ void x87_fucom( struct x86_function *p, struct x86_reg arg );
 
23
  */
 
24
 struct x86_reg x86_fn_arg( struct x86_function *p, unsigned arg );
 
25
 
 
26
+#pragma GCC visibility pop
 
27
+
 
28
 #endif
 
29
 #endif