<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - intel_do_flush_locked when trying to use clEnqueueAcquireGLObjects"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=81578">81578</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>intel_do_flush_locked when trying to use clEnqueueAcquireGLObjects
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>wallnuss13@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I posted this bug on the (user) mailing list without getting any answers.
Orignal posting:
<a href="http://lists.freedesktop.org/archives/mesa-users/2014-June/000837.html">http://lists.freedesktop.org/archives/mesa-users/2014-June/000837.html</a> and
<a href="https://github.com/vchuravy/qjulia_gpu/issues/1">https://github.com/vchuravy/qjulia_gpu/issues/1</a>

The gist of what I am trying to do is:

after creating the correct OpenCL and OpenGL contexts and the Texture and Image
object I want to do the following calls to copy the computed information from
the OpenCL Buffer to the Image.

glFlush
clEnqueueAcquireGLObjects
clEnqueueCopyBufferToImage
clEnqueueReleaseGLObjects
clFlush

After clEnqueueAcquireGLObjects I get the following error:
"intel_do_flush_locked failed: No such file or directory"

The command itself succeeds but if I put a breakpoint on it and step through
the rest of the function I get that error right after the call.

The problem might stem from my setup. I am using the AMD OpenCL implementation
on an Intel CPU in combination with mesa on an Intel HD3000.

On the other hand if I use llvmpipe it works fine and I also don't get an error
when running it with INTEL_NO_HW=1

Since I am new to mesa debugging how would I go about to get you more usable
information? In the Github repo linked above I have a small c test case for the
scenario I am describing and which reproduces the problem on two different
laptops reliably.

Best Valentin</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>