<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 - surface state leak when creating and destroying image views with aspectMask depth and stencil"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105994">105994</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>surface state leak when creating and destroying image views with aspectMask depth and stencil
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>17.3
          </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/Vulkan/intel
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>cstout@chromium.org
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>jason@jlekstrand.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>--------------------------------------------
On mesa 17.3, function anv_CreateImageView:

iview->n_planes = anv_image_aspect_get_planes(iview->aspect_mask);

    iview->aspect_mask is 0x6, n_planes is 1

anv_foreach_image_aspect_bit(iaspect_bit, image, expanded_aspects) {

    expanded_aspects is 0x6, the loop runs *twice*

iview->planes[vplane].optimal_sampler_surface_state.state =
alloc_surface_state(device);
         iview->planes[vplane].general_sampler_surface_state.state =
alloc_surface_state(device);

    Allocated surface state for vplane 0 and 1

----------------------------------
In function anv_DestroyImageView:

for (uint32_t plane = 0; plane < iview->n_planes; plane++) {

Loop runs only once.</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>