[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: radeon_dri.so: undefined symbol: sse_test_dummy



merge 229984 233582
thanks

On Thu, Feb 19, 2004 at 02:57:33AM -0800, Chris Ruvolo wrote:
> Here is a patch that I found, but I have not tested it.  Found at url:
> 
> http://dev.gentoo.org/~spyderous/xfree/redhat/XFree86-4.3.0-45/XFree86-4.3.0-Mesa-SSE-fixes-from-MesaCVS-v2.patch
One part of this patch is already included in the Debian package (patch
000_stolen_from_Mesa_5.1.diff). I have made a patch for the second part
and built xfree86 with it. It fixes the problem. 

Please find attached the patch to be put in debian/patches/

Cheers,
Aurelien
  

-- 
  .''`.  Aurelien Jarno	              GPG: 1024D/F1BCDB73
 : :' :  Debian GNU/Linux developer | Electrical Engineering Student 
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net
$Id: 000_stolen_from_Mesa_CVS_sse.diff 2004-02-19 20:51:14Z aurel32 $

This code stolen from Mesa CVS fixes an undefined symbol on sse_test_dummy.
See Debian #229984

diff -u xc/extras/Mesa/src/X86/common_x86_asm.S:1.16 xc/extras/Mesa/src/X86/common_x86_asm.S:1.17
--- xc/extras/Mesa/src/X86/common_x86_asm.S:1.16	Mon Dec 16 11:18:33 2002
+++ xc/extras/Mesa/src/X86/common_x86_asm.S	Sun Sep 28 15:17:08 2003
@@ -182,7 +182,13 @@
 	LDMXCSR	( REGOFF( -8, EBP ) )
 
 	XORPS	( XMM0, XMM0 )
-	MOVUPS	( CONTENT( GLNAME( sse_test_dummy ) ), XMM1 )
+
+	PUSH_L	( CONST( 0x3f800000 ) )
+	PUSH_L	( CONST( 0x3f800000 ) )
+	PUSH_L	( CONST( 0x3f800000 ) )
+	PUSH_L	( CONST( 0x3f800000 ) )
+
+	MOVUPS	( REGIND( ESP ), XMM1 )
 
 	DIVPS	( XMM0, XMM1 )
 

Attachment: signature.asc
Description: Digital signature


Reply to: