<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Invalid imageAtomicExchange() writes."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106390#c14">Comment # 14</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - 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:danylo.piliaiev@gmail.com" title="Danylo <danylo.piliaiev@gmail.com>"> <span class="fn">Danylo</span></a>
</span></b>
        <pre>Returning to this there are several observations I can add:

1) imageAtomicExchange() works with constant data:

   imageAtomicExchange(out_surface, ivec2(gl_GlobalInvocationID.xy),
0xFF00FF00); 

   works while with variable color it doesn't.

2) Vertical gradiesnt are fine, the issue appears only when having different
colors in a row.

3) In a row every pixel for which gl_LocalInvocationID.x == 0 has correct color
while other (local_size_x - 1) pixels inherit its gba channels' values so

        vec4 color;
        if (gl_LocalInvocationID.x == 0) {
                color = vec4(1.0, 0.0, 0.0, 1.0);
        } else {
                color = vec4(0.0, gl_LocalInvocationID.x / float(GROUP_SIZE),
0.0, 1.0);
        }

        imageAtomicExchange(out_surface, ivec2(gl_GlobalInvocationID.xy),
packUnorm4x8(color));

   produces red vertical lines with black color between them while it should
produce red lines with green gradient in between.

I don't have any ideas what's wrong here.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>