<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 - [IVY BRIDGE] Fragment shader discard writing to depth"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97207">97207</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[IVY BRIDGE] Fragment shader discard writing to depth
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </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>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>webmaster@saschawillems.de
          </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>Created <span class=""><a href="attachment.cgi?id=125542" name="attach_125542" title="Discard with depth not being discarded on Sky Lake">attachment 125542</a> <a href="attachment.cgi?id=125542&action=edit" title="Discard with depth not being discarded on Sky Lake">[details]</a></span>
Discard with depth not being discarded on Sky Lake

In the indirect draw example of my Vulkan examples I use discard in the
fragment shader for discarding transparent fragments.

As per spec, discarding fragments should also discard depth, but this doesn't
seem to work on Ivy Bridge with current MESA drivers, color is discarded, but
depth is written, even though the fragment shader does not specify
early_fragment_tests.

I have attached a screenshot from Ubuntu with Ivy Brdige showing the clear
color of the scene where the fragments are discarded and one from a GTX 980
rendering as expected.</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>