<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [BRW] WRC 5 asserts with gallium nine and iris."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111150#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [BRW] WRC 5 asserts with gallium nine and iris."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111150">bug 111150</a>
              from <span class="vcard"><a class="email" href="mailto:nanleychery@gmail.com" title="Nanley Chery <nanleychery@gmail.com>"> <span class="fn">Nanley Chery</span></a>
</span></b>
        <pre>Is the tiling of the surface X-tiled? 

My guess is that this commit enables CCS for X-tiled images used for display.
This now causes us to fast-clear the image in NineSurface9_ctor. When
resource_get_handle is called (from D3DWindowBuffer_create?) we're not
flushing/resolving as expected when PIPE_HANDLE_USAGE_EXPLICIT_FLUSH flag is
passed in as an argument.

Does adding the following in iris_resource_get_handle fix it?

if ((usage & PIPE_HANDLE_USAGE_EXPLICIT_FLUSH) && res->aux.usage != 0)
   iris_flush_resource(ctx, res);</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>