<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - OSX: EXC_BAD_ACCESS when using translate_sse + gallium + softpipe/llvmpipe"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90904#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - OSX: EXC_BAD_ACCESS when using translate_sse + gallium + softpipe/llvmpipe"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90904">bug 90904</a>
              from <span class="vcard"><a class="email" href="mailto:jfonseca@vmware.com" title="José Fonseca <jfonseca@vmware.com>"> <span class="fn">José Fonseca</span></a>
</span></b>
        <pre>Probably the old (non-LLVM) JIT machine code generator doesn't support MacOSX.

This patch should work around it:

diff --git a/src/gallium/auxiliary/translate/translate_sse.c
b/src/gallium/auxiliary/translate/translate_sse.c
index c7b6c36..24da890 100644
--- a/src/gallium/auxiliary/translate/translate_sse.c
+++ b/src/gallium/auxiliary/translate/translate_sse.c
@@ -35,7 +35,7 @@
 #include "translate.h"


-#if (defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)) &&
!defined(PIPE_SUBSYSTEM_EMBEDDED)
+#if (defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)) &&
!defined(PIPE_SUBSYSTEM_EMBEDDED) && !defined(PIPE_OS_APPLE)

 #include "rtasm/rtasm_cpu.h"
 #include "rtasm/rtasm_x86sse.h"


But I suspect the real problem is in
src/gallium/auxiliary/rtasm/rtasm_execmem.c . Instead of the above patch, maybe
this one will fix it:

diff --git a/src/gallium/auxiliary/rtasm/rtasm_execmem.c
b/src/gallium/auxiliary/rtasm/rtasm_execmem.c
index 8c3dbef..f935879 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_execmem.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_execmem.c
@@ -49,7 +49,7 @@
 #include <windows.h>
 #endif

-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS)
|| defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN)
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS)
|| defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_APPLE)


 /*</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>