<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jadahl@gmail.com" title="Jonas Ådahl <jadahl@gmail.com>"> <span class="fn">Jonas Ådahl</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Buffer corruption with Chromium on gnome-shell (wayland) after taking a screenshot"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111140">bug 111140</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;">CC</td>
           <td>
                
           </td>
           <td>jadahl@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Buffer corruption with Chromium on gnome-shell (wayland) after taking a screenshot"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111140#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Buffer corruption with Chromium on gnome-shell (wayland) after taking a screenshot"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111140">bug 111140</a>
              from <span class="vcard"><a class="email" href="mailto:jadahl@gmail.com" title="Jonas Ådahl <jadahl@gmail.com>"> <span class="fn">Jonas Ådahl</span></a>
</span></b>
        <pre>(In reply to Lionel Landwerlin from <a href="show_bug.cgi?id=111140#c8">comment #8</a>)
<span class="quote">> So looking at the way mutter bind the dmabuf shared with chromium to a 2D
> texture, it does so through cogl_egl_texture_2d_new_from_image().
> That function seems to rely on GL_OES_EGL_image_external extension :
> <a href="https://www.khronos.org/registry/EGL/extensions/EXT/">https://www.khronos.org/registry/EGL/extensions/EXT/</a>
> EGL_EXT_image_dma_buf_import.txt

> The extension has this bit in the spec :


>     There is no support for most of the functions that manipulate
>     other texture targets (e.g. you cannot use gl*Tex*Image*() functions with
>     TEXTURE_EXTERNAL_OES).

> That makes me think what mutter is doing is illegal.</span >

Does gl*Tex*Image() here imply glGetTexImage() too then you mean? Does reading
from it mean "manipulate"?

Either way, I created <a href="https://gitlab.gnome.org/GNOME/mutter/merge_requests/687">https://gitlab.gnome.org/GNOME/mutter/merge_requests/687</a>
that should avoid reading directly from it. It didn't reproduce with or without
it, so if anyone that can reproduce it can give it a test I'd appreciate it.</pre>
        </div>
      </p>


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

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