<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 04/25/2017 10:20 PM, Mike Gorchak
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHXAxrOFNbTM=2+pzWUaro8qTEHgWy-VO94QX0Nk1-Z_xDWK8g@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi all,<br>
                  <br>
                </div>
                During a quick tests of latest Mesa3D versions at
                different branches 12.x, 13.x, 17.x we have found that
                deferred context and surface destroy doesn't work
                properly.<br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    What kind of test case are you using, could you share this?<br>
    <br>
    <blockquote type="cite"
cite="mid:CAHXAxrOFNbTM=2+pzWUaro8qTEHgWy-VO94QX0Nk1-Z_xDWK8g@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>
            <div>According to docs:<br>
              <a
href="https://www.khronos.org/registry/EGL/sdk/docs/man/html/eglDestroySurface.xhtml"
                moz-do-not-send="true">https://www.khronos.org/registry/EGL/sdk/docs/man/html/eglDestroySurface.xhtml</a><br>
              <br>
              Description<br>
              If the EGL surface is not current to any thread,
              eglDestroySurface destroys it immediately. Otherwise,
              surface is destroyed when it becomes not current to any
              thread. Furthermore, resources associated with a pbuffer
              surface are not released until all color buffers of that
              pbuffer bound to a texture object have been released. <br>
              <br>
            </div>
            Same for context destroy:<br>
            <a
href="https://www.khronos.org/registry/EGL/sdk/docs/man/html/eglDestroyContext.xhtml"
              moz-do-not-send="true">https://www.khronos.org/registry/EGL/sdk/docs/man/html/eglDestroyContext.xhtml</a><br>
            <br>
            Description<br>
            If the EGL rendering context is not current to any thread,
            eglDestroyContext destroys it immediately. Otherwise,
            context is destroyed when it becomes not current to any
            thread.<br>
            <br>
          </div>
          Should this behavior be handled at EGL common DRI2 level or
          DRI2 platform driver level or it should be handled by EGL
          itself? I can see some refcounts implemented for EGL surfaces,
          buteglMakeCurrent seems don't increment them for surfaces and
          contexts. <br>
          <br>
        </div>
        Thanks!<br>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mesa-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>