Bug 5518 - clipped gradients are not drawn
Summary: clipped gradients are not drawn
Status: RESOLVED NOTOURBUG
Alias: None
Product: cairo
Classification: Unclassified
Component: xlib backend (show other bugs)
Version: 1.1.1
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-06 06:59 UTC by Benjamin Berg
Modified: 2009-06-07 03:27 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
testcase (1.29 KB, text/x-csrc)
2006-01-06 07:00 UTC, Benjamin Berg
Details
rendered with the png backend (789 bytes, image/png)
2006-01-06 07:01 UTC, Benjamin Berg
Details
result using xlib (793 bytes, image/png)
2006-01-06 07:02 UTC, Benjamin Berg
Details
also using xlib (783 bytes, image/png)
2006-01-06 07:03 UTC, Benjamin Berg
Details
the gradients are not rendered in Gnome (8.71 KB, image/svg+xml)
2006-12-17 06:26 UTC, David Christian Berg
Details

Description Benjamin Berg 2006-01-06 06:59:08 UTC
There is a problem with drawing gradients in clearlooks. See
http://bugzilla.gnome.org/show_bug.cgi?id=325818

I'll attach a test case which I think reproduces the problem. (I tried different
clippings, until I got something that looked wrong).
This does not happen with the png backend.
Comment 1 Benjamin Berg 2006-01-06 07:00:17 UTC
Created attachment 4248 [details]
testcase
Comment 2 Benjamin Berg 2006-01-06 07:01:17 UTC
Created attachment 4249 [details]
rendered with the png backend

As you can see the test is rendered correctly with the png backend.
Comment 3 Benjamin Berg 2006-01-06 07:02:43 UTC
Created attachment 4250 [details]
result using xlib
Comment 4 Benjamin Berg 2006-01-06 07:03:58 UTC
Created attachment 4251 [details]
also using xlib

Sometimes I see this as a result of the testcase.
Comment 5 Benjamin Berg 2006-01-06 12:29:08 UTC
Just tested without XRENDER and it is looking correctly then.
Comment 7 David Christian Berg 2006-12-17 06:26:31 UTC
Created attachment 8144 [details]
the gradients are not rendered in Gnome
Comment 8 David Christian Berg 2006-12-17 06:32:14 UTC
OK, Benjamin, I'm not yet too familiar with this.
Do you think this is the bug I'm also experiencing with my icons?
For everybody, who's not one of my brothers, I before attached an SVG (at least
I think I did) that is rendered badly in Gnome and what I blame Cairo for.
If this isn't the bug, is it Cairo at all?
Comment 9 David Christian Berg 2006-12-17 09:07:23 UTC
As for my _part_ of the bug, I figured out, that it is transformation matrices
of gradients that cause it.
to give you an example:

<linearGradient
       inkscape:collect="always"
       xlink:href="#linearGradient3813"
       id="linearGradient4074"
       gradientUnits="userSpaceOnUse"
gradientTransform="matrix(3.786847e-6,1.045166e-6,-1.045166e-6,3.786847e-6,-53.0238,-21.8569)"
       x1="37179696"
       y1="16832558"
       x2="19937692"
       y2="5225754" />

without the gradientTransform the display is just like in inkscape, but
obviously it's not the correct dislay.
Comment 10 Owen Taylor 2008-04-03 12:16:08 UTC
This is almost certainly a server bug, not a Cairo bug (per se). So 
if any reporters can still reproduce this,the relevant information
is:

 - What version of the X server
 - What driver
 - What driver version
 - Any driver options? (For example, is EXA enabled instead of
   XAA)
Comment 11 Owen Taylor 2008-04-03 12:20:45 UTC
As a data point, the test case works fine for me with git Xorg as
of 2008-04-01, with the patches from bug 15333 and bug 15345 applied
on an ATI rv350 using EXA.

(From the age of the bug I suspect that those EXA-specific patches
aren't relevant to the original bug report, though they do cause misrendering of 
cairo gradients.)
Comment 12 Chris Wilson 2009-06-07 03:27:34 UTC
Old bug in the ATI driver.


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.