<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 - dEQP-GLES3: textureOffset() call with isampler3d in vertex shader fails with U offset = 7."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89639">89639</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>dEQP-GLES3: textureOffset() call with isampler3d in vertex shader fails with U offset = 7.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

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

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

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

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

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

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

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

        <tr>
          <th>Reporter</th>
          <td>siglesias@igalia.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The test checks that isampler3d is accessing properly an integer 3D texture
with a given offset using textureOffset() shader function. In this case, the
offset vector is (7, 3, -8).

According to the PRM, the valid values are from [-8, 7] because it's in 4-bits
two's complement, so 7 is the maximum and -8 the minimum. However, only when
the value of '7' is present in the first component (U offset) the bug appears.

If I change that value to any other one inside the valid range, it works fine.

By the way, If I modify textureOffset.usampler3d_vertex test to use the same
offset vector (7, 3, -8), it fails. It is not a surprise as it has the same
sampler type (sample_l). However, sampler3d test works fine in the same
conditions.

-----------

Mesa master: 27bf37ba05b69ebf6f373d1637a26b4839265921
Tested on Haswell.

How to reproduce it:

$ cd modules/gles3/
$ ./deqp-gles3 -n
dEQP-GLES3.functional.shaders.texture_functions.textureoffset.isampler3d_vertex</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>