<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 - assertion failure when running piglit over virgl"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107844">107844</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>assertion failure when running piglit over virgl
          </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>kusmabite@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If I run piglit inside QEMU with virgl, I get an assert inside the i965 driver
like so:

../src/intel/compiler/brw_fs_visitor.cpp:449: void
fs_visitor::emit_fb_writes(): Assertion `!prog_data->dual_src_blend ||
key->nr_color_regions == 1' failed.

To avoid running the complete test-suite, you can run this to reproduce it
instead:

piglit run quick_gl -t
".*arb_blend_func_extended-fbo-extended-blend-pattern_gles2" results/quick_gl/

What you'll see is the whole VM crashing, due to the VM process calling
abort().

This obviously requires an assert-enabled build of mesa to reproduce.

It also seems I'm not the only one who has this problem:
<a href="https://dri.freedesktop.org/~cbrill/dri-log/?channel=intel-gfx&highlight_names=&date=2018-06-22">https://dri.freedesktop.org/~cbrill/dri-log/?channel=intel-gfx&highlight_names=&date=2018-06-22</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>