<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 - [Gen7-8] Integer texture views can be incorrect"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105826">105826</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Gen7-8] Integer texture views can be incorrect
          </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>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

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

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>On BDW and earlier, fast-clear colors are limited to 0 and a format-dependent 1
per-channel. For integer textures, the 1 equals 0x1 and for float textures the
1 equals 1.0f (0x3f80000). Due to the clear color value of 1 being interpreted
differently for different formats, it should not be possible to use it without
introducing resolves.

i965 currently allows fast-clearing a float texture to 1 but doesn't introduce
a resolve when accessing the texture as an integer.

We can demonstrate the problem this causes by doing the following:
1. Fast clear an R32F texture to 1.0. For the purpose of this example, we make
it 64x64px.
2. Create an R32UINT texture view from the R32F.
3. Render to the first row of the R32UINT. This will cause the HW to write out
the fast clear color in the parts of the cacheline pairs not written to. Each
CL Pair has a dimension of 8x4px.
4. Read back the texture as R32UINT.
5. Observe that the following 3 rows are equal to 1 instead of the 0x3f800000
it was cleared to in step 1.

We need write a bug to exercise this issue, and then fix it. The piglit test
at:
tests/spec/arb_texture_view/rendering-r32ui.c looks like a good place to start.</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>