On Wednesday 24 October 2007 11:23:06 am Zack Rusin wrote:
> Hey,
>
> I just pushed the initial support for vertex shaders through LLVM to Mesa's
> gallium-0.1 branch.

I forgot something. If you want to try it out you want LLVM from SVN along the 
attached patch. On Linux LLVM misaligns the stack which causes unaligned 
mixing of mmx/sse and other registers, the attached patch fixes it by forcing 
a 16bit alignment on all elf platforms. Proper fix (logic to do actual proper 
alignment) is being worked on by one of the LLVM devs right now.

z
Index: lib/Target/X86/X86Subtarget.cpp
===================================================================
--- lib/Target/X86/X86Subtarget.cpp	(revision 43221)
+++ lib/Target/X86/X86Subtarget.cpp	(working copy)
@@ -292,6 +292,6 @@
   if (TargetType == isDarwin ||
       TargetType == isCygwin ||
       TargetType == isMingw  ||
-      (TargetType == isELF && Is64Bit))
+      (TargetType == isELF))
     stackAlignment = 16;
 }
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to