<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clip-polygons.xcb-render-0_0.argb32 failure"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84286">84286</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>psychon@znc.in
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clip-polygons.xcb-render-0_0.argb32 failure
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sixtysix@inwind.it
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>xcb backend
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=106795" name="attach_106795" title="quick hack">attachment 106795</a> <a href="attachment.cgi?id=106795&action=edit" title="quick hack">[details]</a></span>
quick hack

The problem is that the clip contains multiple self-intersecting paths,
in that case _cairo_clip_combine_with_surface (src/cairo-clip-surface.c:78)
uses each path separately with a fill (OPERATOR_IN), for each pixel on the
contour of more than one path that results in a different pixel coverage
than filling once with the path intersection of all paths.

In get_clip_surface (src/cairo-xcb-surface-render.c:1698) using a temoporary
clear image surface and painting in white (OPERATOR_ADD) to perform the
clip fixes

clip-polygons.xcb-render-0_0.argb32
clip-group-shapes-circles.xcb-render-0_0 .argb32 and .rgb24</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>