<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jason@jlekstrand.net" title="Jason Ekstrand <jason@jlekstrand.net>"> <span class="fn">Jason Ekstrand</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - 15% perf drop in DrvRes with "i965/miptree: Use num_samples of 1 instead of 0 for single-sampled""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102260">bug 102260</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - 15% perf drop in DrvRes with "i965/miptree: Use num_samples of 1 instead of 0 for single-sampled""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102260#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - 15% perf drop in DrvRes with "i965/miptree: Use num_samples of 1 instead of 0 for single-sampled""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102260">bug 102260</a>
              from <span class="vcard"><a class="email" href="mailto:jason@jlekstrand.net" title="Jason Ekstrand <jason@jlekstrand.net>"> <span class="fn">Jason Ekstrand</span></a>
</span></b>
        <pre>This is fixed by the following commit:

commit f24cf82d6db290a88abfff0669d2c5e2aa463901
Author: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>>
Date:   Sat Aug 19 11:03:38 2017 -0700

    i965/tex: Don't pass samples to miptree_create_for_teximage

    In 76e2f390f9863a35, when Topi switched num_samples from 0 to 1 for
    single-sampled, he accidentally switched the last parameter in the call
    to miptree_create_for_teximage from 0 to 1 thinking it was num_samples
    when it was actually layout_flags.  Switching from 0 to 1 added the
    MIPTREE_LAYOUT_ACCELERATED_UPLOAD flag which causes us to allocate a
    busy BO instead of an idle one.  This caused the subsequent CPU upload
    to consistently stall.  The end result was a 15% performance drop in the
    SynMark v7 DrvRes microbenchmark.  This restores the old behavior and
    fixes the performance regression.

    Reviewed-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>>
    Fixes: 76e2f390f9863a356d1419982dec705260d67eff
    Bugzilla: <a href="https://bugs.freedesktop.org/102260">https://bugs.freedesktop.org/102260</a>
    Cc: <a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a></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>