<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jason@jlekstrand.net" title="Jason Ekstrand <jason@jlekstrand.net>"> <span class="fn">Jason Ekstrand</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Invalid imageAtomicExchange() writes."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106390">bug 106390</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>INVALID
           </td>
           <td>---
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Invalid imageAtomicExchange() writes."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106390#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Invalid imageAtomicExchange() writes."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106390">bug 106390</a>
              from <span class="vcard"><a class="email" href="mailto:jason@jlekstrand.net" title="Jason Ekstrand <jason@jlekstrand.net>"> <span class="fn">Jason Ekstrand</span></a>
</span></b>
        <pre>(In reply to Alexander from <a href="show_bug.cgi?id=106390#c2">comment #2</a>)
<span class="quote">> So is the atomicImage* behavior different to imageStore? It's not absolutely
> clear from GL_ARB_shader_image_load_store specification: "For example, it is
> legal to access an image whose internal format is RGBA8 with an image unit
> format of R32UI."

> Nvidia and AMD doesn't have a difference between:

> layout(r32ui) uniform uimage2D surface;
> imageAtomicExchange(surface, ..., packUnorm4x8(color))

> layout(rgba8) uniform writeonly image2D surface;
> imageStore(surface, ..., color)</span >

Ok, yeah, that should work fine and I'm a bit confused as to why it's not. 
Sorry for the overly quick response. :/  Are you sure the image unit is set up
with the right format?

Unfortunately, from the pictures, it's hard to tell what's wrong.  Do you
expect them to be exactly the same?  I suppose the one with atomics has a bit
of a blue tint.

What happens if you bind as R32_UINT and then use imageStore(surface, ...,
packUnorm4x8(color))?</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>