<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - OpenCL enqueueReadBuffer returns trash"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101952">101952</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>OpenCL enqueueReadBuffer returns trash
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>17.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>janpieter.sollie@dommel.be
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=133073" name="attach_133073" title="command log with GDB showing the results of a library switch from amdgpu-pro to mesa">attachment 133073</a> <a href="attachment.cgi?id=133073&action=edit" title="command log with GDB showing the results of a library switch from amdgpu-pro to mesa">[details]</a></span>
command log with GDB showing the results of a library switch from amdgpu-pro to
mesa

Hardware: 
cpu: 2x Opteron 6276
RAM: 128GB 
Video card: on-board matrox G200 and AMD Nano (Fiji)

Software:
Linux: 4.10.17/DRM 3.9.0 (gentoo)
LLVM: 4.0.0
gcc: 7.1.0
mesa: 17.1.5

problem:
when I render a program using the AMD pro libraries, the clEnqueueReadBuffer
command returns the correct output.  When I use the mesa libs, the output is
trash.  A write to the buffer is performed in both cases. before, the whole
buffer is 0, and after:
AMD: { 0, 0, 0, 255 }
MESA: {4177618488, 4177945519, 16468310, 12159302}

for both cases, the standard amdgpu kernel module was used.

incorrect clReadBuffer results make the system unusable.</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>