<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 - Some miptree maps don't use intel_mipmap_tree::offset"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107073">107073</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Some miptree maps don't use intel_mipmap_tree::offset
          </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>Miptree maps for stencil, depth-stencil, and etc-decompressed-workaround
miptrees don't use ::offset. This seems wrong.

I think we may run into an issue in the following case:
1. Create a DRI image from a miptree level > 1 via
__DRIimageExtensionRec::createImageFromTexture. The level must be in a
different tile than the base level. This will set __DRIimage::offset > 0.
2. Create an aformentioned problematic miptree from that image using
EGLImageTargetRenderbufferStorage or EGLImageTargetTexture2D (maybe also
__DriverAPIRec::MakeCurrent?). These use intel_miptree_create_for_dri_image
internally and will set intel_mipmap_tree::offset > 0.
3. Map the miptree for reading. We'll expect data from the level > 1, but we'll
instead get data from the base level.

If this is indeed possbile, we need a piglit test to confirm the issue and a
Mesa patch to fix it.</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>