Summary: | Does not draw with radial pattern if scaling is too small | ||
---|---|---|---|
Product: | cairo | Reporter: | Jason Crain <jason> |
Component: | image backend | Assignee: | Chris Wilson <chris> |
Status: | RESOLVED MOVED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 22098 |
Description
Jason Crain
2014-07-23 05:45:18 UTC
As you also stated, this does not seems to be radial-specific. For that code, cairo will apply the following pixman trasform to the pattern: matrix = { [0] = ([0] = 21473526, [1] = 0, [2] = 0) [1] = ([0] = 0, [1] = 21473526, [2] = 0) [2] = ([0] = 0, [1] = 0, [2] = 65536) } (pixman numbers are 16.16 fixed point) Then in analyze_extents() pixman will try to check that the extents can be transformed by that matrix and still be represented with the internal 31.16 format. This unfortunately is not true (300 * 21473526 > 0x7fffffff), hence pixman bails out. With the 0.005 scale factor, the matrix has smaller coefficients: matrix = { [0] = ([0] = 4294705, [1] = 0, [2] = 23) [1] = ([0] = 0, [1] = 4294705, [2] = 23) [2] = ([0] = 0, [1] = 0, [2] = 65536) } In this case the extents can be represented internally by pixman (300 * 4294705 < 0x7fffffff), so the gradient is drawn. It might be possible to improve the pixman transformation generated by cairo and/or to make pixman more forgiving about these kind of numbers. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/333. |
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.