Bug 25167

Summary: Fails to paint some paths with CAIRO_ANTIALIAS_NONE
Product: cairo Reporter: Gustavo Noronha Silva <gustavo.noronha>
Component: xlib backendAssignee: Carl Worth <cworth>
Status: RESOLVED NOTOURBUG QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.9.2   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test case

Description Gustavo Noronha Silva 2009-11-18 12:32:06 UTC
Created attachment 31296 [details]
test case

I noticed this while investigating WebKitGTK+'s failure to draw some box outlines. When WebKit tries to draw a 4-points polygon with code similar to the one I'm attaching as test case nothing gets painted. If I comment out the line that sets the antialias type to NONE the outline does get painted. I tried using the image backend to be sure, and it worked when generating a png, which is why I'm filling this under the xlib backend component.
Comment 1 Gustavo Noronha Silva 2009-11-18 12:36:49 UTC
Oh, I just noticed I forgot to explain why I say some paths do not work. If you make the path be a rectangle covering the whole window, for instance, it works.
Comment 2 Gustavo Noronha Silva 2009-11-19 03:40:39 UTC
One more information: it works when running inside Xephyr, but not on my main X server.
Comment 3 Andrea Canciani 2011-06-25 05:10:32 UTC
This might be (In reply to comment #2)
> One more information: it works when running inside Xephyr, but not on my main X
> server.

I cannot reproduce and based on what you are seeing, it looks like a driver bug.
Additional information (like what video card and driver you are using) might be helpful in tracking down the issue, but it probably does not belong to cairo.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.