<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [r600g]OpenCL driver causes ImageMagick to segfault"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93748#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [r600g]OpenCL driver causes ImageMagick to segfault"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93748">bug 93748</a>
              from <span class="vcard"><a class="email" href="mailto:nixscripter@gmail.com" title="nixscripter@gmail.com">nixscripter@gmail.com</a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=121124" name="attach_121124" title="GenerateNoiseImage kernel">attachment 121124</a> <a href="attachment.cgi?id=121124&action=edit" title="GenerateNoiseImage kernel">[details]</a></span>
GenerateNoiseImage kernel

Here is their kernel. It's rather ugly.

It has a lot of macros (like ClamptoQuantum) and functions running on the host
(mwcGenerateDifferentialNoise is elsewhere in the same file), but perhaps if
it's an LLVM assembler bug those don't matter.

The initialization code for the OpenCL context, by the way, is entirely
separate and also rather ugly (I presume so they can load it early and "drop it
in" when needed).

Here is a link to the source of my exact version (which I know is old, sorry
about that) so you can look at any surrounding context necessary:

<a href="http://distfiles.icmpv6.org/distfiles/ImageMagick-6.9.2-6.tar.xz">http://distfiles.icmpv6.org/distfiles/ImageMagick-6.9.2-6.tar.xz</a>

Note that this kernel can be found in magick/accelerate-private.h -- the error
pointing to magick/accelerate.c is where the kernel is initialized.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>